Login
4 branches 0 tags
Ben (Desktop/Arch) Fixed deploy rsync 403513d 1 month ago 122 Commits
rubhub / src / controllers / not_found.rs
use askama::Template;
use axum::{http::StatusCode, response::Html};

use crate::views::ThemedRender;

#[derive(Template)]
#[template(path = "404.html")]
struct NotFoundTemplate;

pub async fn not_found() -> (StatusCode, Html<String>) {
    (
        StatusCode::NOT_FOUND,
        Html(NotFoundTemplate.render_with_theme()),
    )
}