refactor admin router into separate file
also set admin secret using command line args
This commit is contained in:
6
backend/src/config.rs
Normal file
6
backend/src/config.rs
Normal file
@ -0,0 +1,6 @@
|
||||
#[derive(Default, Clone)]
|
||||
pub struct Config {
|
||||
pub port: u32,
|
||||
pub host: String,
|
||||
pub admin_secret: Option<String>,
|
||||
}
|
||||
Reference in New Issue
Block a user