aaredb/backend/app/routers/protected_router.py
GotthardG 6cde57f783 **Commit Message:**
Enhance app with active pgroup handling and token updates

Added active pgroup state management across the app for user-specific settings. Improved token handling with decoding, saving user data, and setting OpenAPI authorization. Updated components, API calls, and forms to support dynamic pgroup selection and user-specific features.
2025-01-22 13:55:26 +01:00

8 lines
189 B
Python

from fastapi import APIRouter, Depends
from app.routers.auth import get_current_user
protected_router = APIRouter(
dependencies=[Depends(get_current_user)] # Applies to all routes
)