Files
minne/crates/html-router/src/routes/gdpr.rs
T
2025-03-08 15:47:44 +01:00

16 lines
351 B
Rust

use axum::response::{Html, IntoResponse};
use crate::SessionType;
pub async fn accept_gdpr(session: SessionType) -> impl IntoResponse {
session.set("gdpr_accepted", true);
Html("").into_response()
}
pub async fn deny_gdpr(session: SessionType) -> impl IntoResponse {
session.set("gdpr_accepted", true);
Html("").into_response()
}