Add assets route

This commit is contained in:
2022-03-30 09:40:46 +02:00
parent 6d8b8979ca
commit d75242d213
8 changed files with 12268 additions and 27 deletions

View File

@ -7,6 +7,7 @@ use basic_oidc::constants::{DEFAULT_ADMIN_PASSWORD, DEFAULT_ADMIN_USERNAME};
use basic_oidc::data::app_config::AppConfig;
use basic_oidc::data::entity_manager::EntityManager;
use basic_oidc::data::user::{hash_password, User};
use basic_oidc::controllers::assets_controller::assets_route;
#[get("/health")]
fn index() -> &'static str {
@ -19,6 +20,7 @@ async fn main() -> Result<(), rocket::Error> {
let rocket = rocket::build()
.mount("/", routes![index])
.mount("/assets", routes![assets_route])
.attach(AdHoc::config::<AppConfig>());
let figment = rocket.figment();