Ready to implement login page

This commit is contained in:
2022-03-30 10:29:10 +02:00
parent 70df96f286
commit 5bc4af399d
7 changed files with 118 additions and 4 deletions

View File

@ -0,0 +1,15 @@
use actix_web::Responder;
use askama::Template;
use crate::constants::APP_NAME;
#[derive(Template)]
#[template(path = "login.html")]
struct LoginTemplate<'a> {
app_name: &'a str,
}
pub async fn login_route() -> impl Responder {
LoginTemplate { app_name: APP_NAME }.render().unwrap()
}

View File

@ -1 +1,2 @@
pub mod assets_controller;
pub mod assets_controller;
pub mod login_controller;