mirror of
https://github.com/lennart-k/rustical.git
synced 2025-12-14 01:12:24 +00:00
frontend: authenticate calendar route
This commit is contained in:
@@ -50,6 +50,7 @@ struct CalendarPage {
|
|||||||
async fn route_calendar<C: CalendarStore + ?Sized>(
|
async fn route_calendar<C: CalendarStore + ?Sized>(
|
||||||
path: Path<(String, String)>,
|
path: Path<(String, String)>,
|
||||||
store: Data<RwLock<C>>,
|
store: Data<RwLock<C>>,
|
||||||
|
user: User,
|
||||||
) -> impl Responder {
|
) -> impl Responder {
|
||||||
let store = store.read().await;
|
let store = store.read().await;
|
||||||
let (owner, cal_id) = path.into_inner();
|
let (owner, cal_id) = path.into_inner();
|
||||||
|
|||||||
Reference in New Issue
Block a user