Templates refactoring

This commit is contained in:
Alphonse Paix
2025-09-20 04:43:55 +02:00
parent d85879a004
commit f7ebf73fbc
15 changed files with 156 additions and 146 deletions

View File

@@ -22,7 +22,7 @@ pub use subscriptions_confirm::*;
use crate::{
authentication::AuthError,
templates::{InternalErrorTemplate, MessageTemplate},
templates::{InternalErrorTemplate, MessageTemplate, NotFoundTemplate},
};
#[derive(thiserror::Error)]
@@ -130,10 +130,6 @@ impl From<AuthError> for AppError {
}
}
#[derive(Template)]
#[template(path = "../templates/404.html")]
struct NotFoundTemplate;
pub async fn not_found() -> Response {
(
StatusCode::NOT_FOUND,