frontend: authenticate calendar route

This commit is contained in:
Lennart
2024-10-14 10:26:33 +02:00
parent 7d51d7bff5
commit 814e7d5c69

View File

@@ -50,6 +50,7 @@ struct CalendarPage {
async fn route_calendar<C: CalendarStore + ?Sized>(
path: Path<(String, String)>,
store: Data<RwLock<C>>,
user: User,
) -> impl Responder {
let store = store.read().await;
let (owner, cal_id) = path.into_inner();