mirror of
https://github.com/perstarkse/minne.git
synced 2026-05-31 03:40:38 +02:00
16 lines
351 B
Rust
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()
|
|
}
|