12 lines
333 B
Rust
12 lines
333 B
Rust
use crate::authentication::AuthenticatedUser;
|
|
use axum::{
|
|
Extension,
|
|
response::{Html, IntoResponse, Response},
|
|
};
|
|
|
|
pub async fn admin_dashboard(
|
|
Extension(AuthenticatedUser { username, .. }): Extension<AuthenticatedUser>,
|
|
) -> Response {
|
|
Html(format!(include_str!("html/dashboard.html"), username)).into_response()
|
|
}
|