going somewhere.

This commit is contained in:
didier amyot committed 2023-02-05 09:57:26 -05:00
1 parent 6092273c76
commit de51e20181
9 files changed
+98 -4

No files matched your search

+4 -1
View File
@@ -1,4 +1,5 @@
mod views;
mod config;
use actix_utils::future::{ready, Ready};
use minijinja;
@@ -68,7 +69,7 @@ pub async fn web_ui_main(port: u16, enable_template_autoreload: bool) -> std::io
notifier.watch_path(&tmpl_path, true);
}
env.set_source(minijinja::Source::from_path(tmpl_path));
println!("boom");
Ok(env)
});
@@ -78,6 +79,8 @@ pub async fn web_ui_main(port: u16, enable_template_autoreload: bool) -> std::io
App::new()
.app_data(tmpl_reloader.clone())
.service(views::index)
.service(views::actions)
.service(views::overview)
.wrap(ErrorHandlers::new().handler(StatusCode::NOT_FOUND, not_found))
.wrap(Logger::default())
})