Skip to content

Commit 969756d

Browse files
committed
fix(service): fix url prefixing for subgraphs route
1 parent 81d12c9 commit 969756d

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

crates/service/src/service/router.rs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,12 +383,13 @@ impl ServiceRouter {
383383
};
384384

385385
// data layer
386-
let data_routes = Router::new()
387-
.route("/subgraphs/id/{id}", post_request_handler)
386+
let subgraphs_route = Router::new()
387+
.route(
388+
&format!("{url_prefix}/subgraphs/id/{{id}}"),
389+
post_request_handler,
390+
)
388391
.with_state(graphnode_state.clone());
389392

390-
let subgraphs_route = Router::new().nest(&url_prefix, data_routes);
391-
392393
let misc_routes = Router::new()
393394
.route("/", get("Service is up and running"))
394395
.route("/info", get(operator_address))

0 commit comments

Comments
 (0)