Skip to content

Commit 42461d2

Browse files
committed
fix: authenticate admin system status endpoint
1 parent 2056418 commit 42461d2

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

‎app/routers/admin.py‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# app/routers/admin.py
22
"""Admin Router - Stub for future implementation"""
3-
from fastapi import APIRouter
3+
from fastapi import APIRouter, Depends
4+
5+
from app.core.security import get_current_user
6+
from app.db.models.auth import User
47

58
router = APIRouter()
69

10+
711
@router.get("/system-status")
8-
async def system_status():
12+
async def system_status(current_user: User = Depends(get_current_user)):
913
return {"status": "healthy", "message": "Admin endpoints - coming soon"}

0 commit comments

Comments
 (0)