Browse Source
make getting config work with multi-domains
pull/3870/merge^2
BlockListed
2 years ago
No known key found for this signature in database
GPG Key ID: 2D204777C477B588
1 changed files with
2 additions and
1 deletions
-
src/api/core/mod.rs
|
|
@ -190,7 +190,8 @@ fn version() -> Json<&'static str> { |
|
|
|
|
|
|
|
#[get("/config")] |
|
|
|
fn config() -> Json<Value> { |
|
|
|
let domain = crate::CONFIG.domain(); |
|
|
|
// TODO: maybe this should be extracted from the current request params
|
|
|
|
let domain = crate::CONFIG.main_domain(); |
|
|
|
let feature_states = parse_experimental_client_feature_flags(&crate::CONFIG.experimental_client_feature_flags()); |
|
|
|
Json(json!({ |
|
|
|
// Note: The clients use this version to handle backwards compatibility concerns
|
|
|
|