**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.
This commit is contained in:
GotthardG
2025-01-22 13:55:26 +01:00
parent 4630bcfac5
commit 6cde57f783
23 changed files with 806 additions and 250 deletions

View File

@ -0,0 +1,7 @@
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
)