aboutsummaryrefslogtreecommitdiff
path: root/src/pages/p404.rs
use actix_web::{HttpResponse, Result};
use askama::Template;

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

/// Render a simple 404 page
pub async fn render() -> Result<HttpResponse> {
    Ok(HttpResponse::NotFound()
        .content_type("text/html")
        .body(P404.render().unwrap()))
}