10 lines
241 B
Rust
10 lines
241 B
Rust
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())
|
|
}
|