first commit
This commit is contained in:
commit
b47f825d54
83 changed files with 10016 additions and 0 deletions
14
backend/app/routes/auth.py
Normal file
14
backend/app/routes/auth.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
from typing import Annotated
|
||||
|
||||
from fastapi import APIRouter, Depends
|
||||
|
||||
from app.auth import require_admin
|
||||
|
||||
router = APIRouter(prefix="/api/auth", tags=["auth"])
|
||||
|
||||
Admin = Annotated[None, Depends(require_admin)]
|
||||
|
||||
|
||||
@router.get("/verify")
|
||||
def verify_token(_: Admin) -> dict[str, bool]:
|
||||
return {"valid": True}
|
||||
Loading…
Add table
Add a link
Reference in a new issue