mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-18 12:48:53 +02:00
feat: Implement authentication and authorization with user management and admin-only debug endpoints.
This commit is contained in:
1 parent
25b0a824c2
commit
5f4d3afbae
3 files changed
+73
-54
No files matched your search
@@ -8,11 +8,12 @@ from fastapi.responses import FileResponse
|
||||
from pydantic import BaseModel
|
||||
|
||||
from app.services import auth_service
|
||||
from app.dependencies import get_admin_user
|
||||
|
||||
router = APIRouter(
|
||||
prefix="/debug",
|
||||
tags=["debug"],
|
||||
dependencies=[Depends(auth_service.get_current_active_admin)],
|
||||
dependencies=[Depends(get_admin_user)],
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
Reference in new issue
Block a user