From a9e7605fdfc5216b0de7c0202b48a049023771b2 Mon Sep 17 00:00:00 2001 From: Dima Pristupa Date: Fri, 5 Apr 2024 16:50:22 +0300 Subject: [PATCH] Load ServerUrlConfig --- src/app/api-server/src/app.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/api-server/src/app.rs b/src/app/api-server/src/app.rs index 23e92f12..4f1da787 100644 --- a/src/app/api-server/src/app.rs +++ b/src/app/api-server/src/app.rs @@ -12,7 +12,7 @@ use std::sync::Arc; use dill::{CatalogBuilder, Component}; use internal_error::*; -use kamu::domain::CurrentAccountSubject; +use kamu::domain::{CurrentAccountSubject, ServerUrlConfig}; use opendatafabric::AccountName; use tracing::info; use url::Url; @@ -74,6 +74,7 @@ pub async fn run(matches: clap::ArgMatches, config: ApiServerConfig) -> Result<( .await .add_value(dependencies_graph_repository) .bind::() + .add_value(ServerUrlConfig::load()?) .build(); match matches.subcommand() {