Templates refactoring
Some checks failed
Rust / Test (push) Has been cancelled
Rust / Rustfmt (push) Has been cancelled
Rust / Clippy (push) Has been cancelled
Rust / Code coverage (push) Has been cancelled

This commit is contained in:
Alphonse Paix
2025-09-20 04:43:55 +02:00
parent b52b676dc0
commit 40dfe1aed8
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,