Can create a family member

This commit is contained in:
2023-08-04 19:03:46 +02:00
parent 274e9d9a21
commit f344765dd8
15 changed files with 1122 additions and 19 deletions

View File

@ -1,5 +1,7 @@
use crate::app_config::{AppConfig, OIDCProvider};
use crate::constants::StaticConstraints;
use crate::utils::countries_utils;
use crate::utils::countries_utils::CountryCode;
use actix_web::{HttpResponse, Responder};
/// Default hello route
@ -12,6 +14,7 @@ struct ServerConfig<'a> {
constraints: StaticConstraints,
mail: &'static str,
oidc_providers: Vec<OIDCProvider<'a>>,
countries: Vec<CountryCode>,
}
impl Default for ServerConfig<'_> {
@ -20,6 +23,7 @@ impl Default for ServerConfig<'_> {
mail: AppConfig::get().mail_sender.as_str(),
constraints: StaticConstraints::default(),
oidc_providers: AppConfig::get().openid_providers(),
countries: countries_utils::get_list(),
}
}
}