diff --git a/common/src/indexer_service/http/indexer_service.rs b/common/src/indexer_service/http/indexer_service.rs index 6be3534b..d85c4626 100644 --- a/common/src/indexer_service/http/indexer_service.rs +++ b/common/src/indexer_service/http/indexer_service.rs @@ -151,6 +151,7 @@ where pub service_impl: I, pub config: IndexerServiceConfig, pub release: IndexerServiceRelease, + pub url_namespace: &'static str, pub extra_routes: Router>, Body>, } @@ -291,7 +292,7 @@ impl IndexerService { let data_routes = Router::new() .route( PathBuf::from(options.config.server.url_prefix) - .join("manifests/:id") + .join(format!("{}/:id", options.url_namespace)) .to_str() .expect("Failed to set up `/manifest/:id` route"), post(request_handler::),