
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.
8 lines
189 B
Python
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
|
|
)
|