404: add page

This commit is contained in:
Agahnim 2026-03-19 18:10:05 +01:00
parent 779c751499
commit 779f42daf7
6 changed files with 43 additions and 2 deletions

10
src/templates/notfound.rs Normal file
View file

@ -0,0 +1,10 @@
use askama::Template;
use axum::response::{Html, IntoResponse};
#[derive(Template)]
#[template(path = "notfound.html")]
struct NotfoundTemplate;
pub async fn notfound() -> impl IntoResponse {
Html(NotfoundTemplate.render().unwrap())
}