frontend restructured

This commit is contained in:
realaravinth
2021-04-05 17:26:58 +05:30
parent 2ce8a46a3f
commit 312d02a41d
20 changed files with 594 additions and 13 deletions

View File

@@ -4,7 +4,7 @@ use tokio::fs;
use tokio::io::{Error, ErrorKind};
#[derive(Clone, TemplateOnce)]
#[template(path = "index.html")]
#[template(path = "auth/login/index.html")]
struct IndexPage {
name: String,
title: String,
@@ -66,7 +66,7 @@ mod signup {
use super::*;
#[derive(TemplateOnce, Clone)]
#[template(path = "signup/index.html")]
#[template(path = "auth/register/index.html")]
pub struct IndexPage {
pub name: String,
pub title: String,
@@ -83,7 +83,7 @@ mod signup {
impl IndexPage {
pub async fn run(&self) -> Result<(), Error> {
let dir = root_path("signup");
let dir = root_path("register");
let file = rel_path(&dir, "index.html");
print!("");