Skip to content

Commit

Permalink
fix network config request
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj committed Aug 14, 2024
1 parent 8b236ae commit 1fcfbdc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
8 changes: 1 addition & 7 deletions contracts/src/bridge/frontend/api/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,7 @@ export const fetchObscuroConfig = async (): Promise<
ResponseDataInterface<ObscuroConfig>
> => {
return await httpRequest<ResponseDataInterface<ObscuroConfig>>({
method: "post",
method: "get",
url: apiRoutes.getObscuroConfig,
data: {
jsonrpc: "2.0",
method: "obscuro_config",
params: [],
id: 1,
},
});
};
2 changes: 1 addition & 1 deletion contracts/src/bridge/frontend/src/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const NavLinks: NavLink[] = [

export const apiRoutes = {
getHealthStatus: `/info/health/`,
getObscuroConfig: `/network-config`,
getObscuroConfig: `/network-config/`,
};

export const requestMethods = {
Expand Down

0 comments on commit 1fcfbdc

Please sign in to comment.