pub fn router( server: Arc<Server>, cors_origins: &[String], api_token: Option<String>, ) -> Result<Router, ConfigError>