Spaces:
Sleeping
Sleeping
Download src/api/auth_test.py from abdullah9873/backend-rag-chatbot-v2: direct link, hf CLI and curl.
- Browser
- Download file 226 Bytes
-
https://huggingface.co/spaces/abdullah9873/backend-rag-chatbot-v2/resolve/main/src/api/auth_test.py
- Command line
-
hf download hf://spaces/abdullah9873/backend-rag-chatbot-v2/src/api/auth_test.py
-
curl -L -o auth_test.py https://huggingface.co/spaces/abdullah9873/backend-rag-chatbot-v2/resolve/main/src/api/auth_test.py
226 Bytes
| from fastapi import APIRouter, Depends | |
| from ..core.security import get_current_user | |
| router = APIRouter() | |
| def read_users_me(current_user: str = Depends(get_current_user)): | |
| return {"user": current_user} | |