Basic dashboard for newsletter issue and password systems

This commit is contained in:
Alphonse Paix
2025-09-17 01:47:03 +02:00
parent 1d027b5460
commit 88dad022ce
6 changed files with 272 additions and 36 deletions

View File

@@ -118,11 +118,8 @@ pub fn app(
};
let admin_routes = Router::new()
.route("/dashboard", get(admin_dashboard))
.route("/password", get(change_password_form).post(change_password))
.route(
"/newsletters",
get(publish_newsletter_form).post(publish_newsletter),
)
.route("/password", post(change_password))
.route("/newsletters", post(publish_newsletter))
.route("/logout", post(logout))
.layer(middleware::from_fn(require_auth));
Router::new()