404: add page
This commit is contained in:
parent
6325e0568c
commit
c4c49dee6b
6 changed files with 43 additions and 2 deletions
10
src/templates/notfound.rs
Normal file
10
src/templates/notfound.rs
Normal 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())
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue