Data upload from web

This commit is contained in:
2024-11-03 02:46:38 +01:00
parent 5c69317660
commit 1bb774eb00
16 changed files with 150 additions and 75 deletions

View File

@@ -1,3 +1,4 @@
use loco_rs::prelude::*;
use serde::{Deserialize, Serialize};
use crate::models::_entities::users;
@@ -39,3 +40,7 @@ impl CurrentResponse {
}
}
}
pub async fn login(v: impl ViewRenderer) -> Result<impl IntoResponse> {
format::render().view(&v, "website/login.html", data!({}))
}

5
src/views/data.rs Normal file
View File

@@ -0,0 +1,5 @@
use loco_rs::prelude::*;
pub async fn upload(v: impl ViewRenderer) -> Result<impl IntoResponse> {
format::render().view(&v, "website/data-upload.html", data!({}))
}

View File

@@ -1,2 +1,3 @@
pub mod auth;
pub mod data;
pub mod website;

View File

@@ -12,7 +12,3 @@ pub async fn index(v: impl ViewRenderer, ctx: &AppContext) -> Result<impl IntoRe
data!({ "skills": skills, "jobs": jobs }),
)
}
pub async fn login(v: impl ViewRenderer) -> Result<impl IntoResponse> {
format::render().view(&v, "website/login.html", data!({}))
}