Skip to content

Commit

Permalink
change /info/health/ from post to get
Browse files Browse the repository at this point in the history
  • Loading branch information
zkokelj committed May 16, 2024
1 parent a0d168c commit cc4ca18
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion tools/tenscan/backend/webserver/webserver_routes_items.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
func routeItems(r *gin.Engine, server *WebServer) {
// info
r.GET("/info/obscuro/", server.getConfig)
r.POST("/info/health/", server.getHealthStatus)
r.GET("/info/health/", server.getHealthStatus)

// batches
r.GET("/items/batches/", server.getBatchListingDeprecated)
Expand Down
4 changes: 2 additions & 2 deletions tools/tenscan/frontend/api/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export const fetchTestnetStatus = async (): Promise<
ResponseDataInterface<boolean>
> => {
return await httpRequest<ResponseDataInterface<boolean>>({
method: "post",
method: "get",
url: pathToUrl(apiRoutes.getHealthStatus),
data: { jsonrpc: "2.0", method: "obscuro_health", params: [], id: 1 },
data: { jsonrpc: "2.0", method: "obscuro_health", id: 1 },
});
};
4 changes: 2 additions & 2 deletions tools/walletextension/frontend/src/api/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ export const fetchTestnetStatus = async (): Promise<
ResponseDataInterface<any>
> => {
return await httpRequest<ResponseDataInterface<any>>({
method: "post",
method: "get",
url: pathToUrl(apiRoutes.getHealthStatus),
data: { jsonrpc: "2.0", method: "obscuro_health", params: [], id: 1 },
data: { jsonrpc: "2.0", method: "obscuro_health", id: 1 },
});
};

0 comments on commit cc4ca18

Please sign in to comment.