init commit

This commit is contained in:
2024-10-30 02:02:12 +01:00
commit ea4942bda1
93 changed files with 9909 additions and 0 deletions

14
src/views/website.rs Normal file
View File

@@ -0,0 +1,14 @@
use loco_rs::prelude::*;
use crate::services;
pub async fn index(v: impl ViewRenderer, ctx: &AppContext) -> Result<impl IntoResponse> {
let skills = services::skills::get_all_skills(ctx).await?;
let jobs = services::jobs::get_all_jobs_with_technologies(ctx).await?;
format::render().view(
&v,
"website/index.html",
data!({ "skills": skills, "jobs": jobs }),
)
}