This commit is contained in:
Alphonse Paix
2025-09-19 19:34:06 +02:00
parent 95c4d3fdd0
commit a75c410948
3 changed files with 51 additions and 0 deletions

View File

@@ -7,9 +7,24 @@ mod subscriptions;
mod subscriptions_confirm;
pub use admin::*;
use askama::Template;
use axum::response::{Html, IntoResponse, Response};
pub use health_check::*;
pub use home::*;
pub use login::*;
pub use posts::*;
use reqwest::StatusCode;
pub use subscriptions::*;
pub use subscriptions_confirm::*;
#[derive(Template)]
#[template(path = "../templates/404.html")]
struct NotFoundTemplate;
pub async fn not_found() -> Response {
(
StatusCode::NOT_FOUND,
Html(NotFoundTemplate.render().unwrap()),
)
.into_response()
}