Administrator privileges to get and delete subscribers
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-30 18:27:48 +02:00
parent b5b00152cd
commit 3e81c27ab3
12 changed files with 2790 additions and 54 deletions

View File

@@ -1,4 +1,5 @@
use crate::{
authentication::AuthenticatedUser,
domain::{PostEntry, SubscriberEntry},
routes::{AppError, DashboardStats},
};
@@ -49,7 +50,7 @@ pub struct LoginTemplate;
#[derive(Template)]
#[template(path = "dashboard/dashboard.html")]
pub struct DashboardTemplate {
pub username: String,
pub user: AuthenticatedUser,
pub idempotency_key_1: String,
pub idempotency_key_2: String,
pub stats: DashboardStats,