Added authentication

This commit is contained in:
2025-11-29 14:19:34 +01:00
parent 47f4a22bef
commit 205b69713e
10 changed files with 274 additions and 18 deletions

View File

@@ -1,7 +1,8 @@
from fastapi import APIRouter, HTTPException
from fastapi import APIRouter, HTTPException, Depends
from database import events_collection
from auth import require_auth
router = APIRouter()
router = APIRouter(dependencies=[Depends(require_auth)])
@router.get("/events")