mirror of
https://git.ngram.ca/OpenJam/rc-servers
synced 2026-08-23 23:08:52 +00:00
Add API endpoint for retrieving config.json (without any secure access details)
This commit is contained in:
@@ -45,6 +45,7 @@ pub trait ConfigProvider<C: Clone> {
|
||||
fn vehicle_validation(&self) -> VehicleValidators;
|
||||
fn garage_slot_limit(&self) -> i32;
|
||||
fn team_choosers(&self) -> TeamChoosers;
|
||||
fn redacted_json(&self) -> String;
|
||||
}
|
||||
|
||||
pub struct DevMessageProvider<C: Clone> {
|
||||
@@ -573,3 +574,7 @@ pub struct PlatformConfig {
|
||||
pub enable_analytics: bool,
|
||||
pub enable_standard_units: bool,
|
||||
}
|
||||
|
||||
pub trait RedactedClone {
|
||||
fn redacted_clone(&self) -> Self;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user