going somewhere.
This commit is contained in:
1 parent
6092273c76
commit
de51e20181
9 files changed
+98
-4
No files matched your search
@@ -1,5 +1,6 @@
|
||||
use crate::webui::MiniJinjaRenderer;
|
||||
use actix_web::{web, Responder};
|
||||
use actix_web::http::header::q;
|
||||
use std::collections::HashMap;
|
||||
|
||||
#[actix_web::get("/")]
|
||||
@@ -9,3 +10,20 @@ pub async fn index(
|
||||
) -> actix_web::Result<impl Responder> {
|
||||
tmpl_env.render("index.html", ())
|
||||
}
|
||||
|
||||
#[actix_web::get("/actions")]
|
||||
pub async fn actions(
|
||||
tmpl_env: MiniJinjaRenderer,
|
||||
query: web::Query<HashMap<String, String>>,
|
||||
) -> actix_web::Result<impl Responder> {
|
||||
tmpl_env.render("actions.html", ())
|
||||
}
|
||||
|
||||
|
||||
#[actix_web::get("/overview")]
|
||||
pub async fn overview(
|
||||
tmpl_env: MiniJinjaRenderer,
|
||||
query: web::Query<HashMap<String, String>>,
|
||||
) -> actix_web::Result<impl Responder> {
|
||||
tmpl_env.render("overview.html", ())
|
||||
}
|
||||
Reference in new issue
Block a user