File tree 3 files changed +5
-5
lines changed
3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ mod tests {
49
49
} ;
50
50
51
51
let app = Router :: new ( )
52
- . route ( "/: deployment_id" , get ( handle) )
52
+ . route ( "/{ deployment_id} " , get ( handle) )
53
53
. layer ( middleware) ;
54
54
55
55
let res = app
Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ impl ServiceRouter {
384
384
385
385
// data layer
386
386
let data_routes = Router :: new ( )
387
- . route ( "/subgraphs/id/:id " , post_request_handler)
387
+ . route ( "/subgraphs/id/{id} " , post_request_handler)
388
388
. with_state ( graphnode_state. clone ( ) ) ;
389
389
390
390
let subgraphs_route = Router :: new ( ) . nest ( & url_prefix, data_routes) ;
@@ -396,7 +396,7 @@ impl ServiceRouter {
396
396
. nest ( "/escrow" , serve_escrow_subgraph)
397
397
. nest ( "/network" , serve_network_subgraph)
398
398
. route (
399
- "/subgraph/health/: deployment_id" ,
399
+ "/subgraph/health/{ deployment_id} " ,
400
400
get ( health) . with_state ( graphnode_state. clone ( ) ) ,
401
401
)
402
402
. layer ( misc_rate_limiter) ;
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ This section lists the routes currently exposed by the Subgraph Service. Each ro
28
28
29
29
| Route | Description |
30
30
| --------------------------------------| ----------------------------------------------------------------------------------------------|
31
- | ` /subgraph/health/:id ` | Retrieves the health state of a specified subgraph using its ID. |
32
- | ` /subgraphs/id/:id ` | Routes a query to a specific subgraph using its ID. Requires a receipt or valid token. |
31
+ | ` /subgraph/health/{id} ` | Retrieves the health state of a specified subgraph using its ID. |
32
+ | ` /subgraphs/id/{id} ` | Routes a query to a specific subgraph using its ID. Requires a receipt or valid token. |
33
33
34
34
## Node Status Route
35
35
You can’t perform that action at this time.
0 commit comments