My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/apps/servers/octopus/src/pages/p404.rs

13 lines
312 B

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()))
}