Skip to content

Commit

Permalink
feat: make http indexer service URL namespace configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Jannis committed Oct 26, 2023
1 parent ef76811 commit f4b8cc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion common/src/indexer_service/http/indexer_service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ where
pub service_impl: I,
pub config: IndexerServiceConfig,
pub release: IndexerServiceRelease,
pub url_namespace: &'static str,
pub extra_routes: Router<Arc<IndexerServiceState<I>>, Body>,
}

Expand Down Expand Up @@ -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::<I>),
Expand Down

0 comments on commit f4b8cc9

Please sign in to comment.