Skip to content

Commit

Permalink
Remove console logs and renamed api
Browse files Browse the repository at this point in the history
  • Loading branch information
prakhar10 committed Aug 12, 2024
1 parent e09c3b9 commit 79eed9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -441,7 +441,7 @@ public Response readExactMatchSourceSelector()
@RolesAllowed("USER")
@Produces(MediaType.APPLICATION_JSON)
@Path("/getRoutingRules")
public Response readRoutingRules()
public Response getRoutingRules()
{
String content = null;
try {
Expand Down
4 changes: 1 addition & 3 deletions webapp/src/components/routing-rules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ export function RoutingRules() {
setRules(data);
setEditingStates(new Array(data.length).fill(false));
setFormApis(new Array(data.length).fill(null));
}).catch((error) => {
console.error("Error fetching routing rules: ", error);
}).catch(() => {
Toast.error("Failed to fetch routing rules");
});
};
Expand Down Expand Up @@ -66,7 +65,6 @@ export function RoutingRules() {

Toast.success("Routing rule updated successfully");
} catch (error) {
console.error("Error updating routing rule: ", error);
Toast.error("Failed to update routing rule");
}
}
Expand Down

0 comments on commit 79eed9b

Please sign in to comment.