16 lines
345 B
Python
16 lines
345 B
Python
from fastapi import APIRouter, HTTPException
|
|
|
|
router = APIRouter()
|
|
|
|
@router.post("/login")
|
|
async def login():
|
|
"""Demo login endpoint"""
|
|
return {
|
|
"message": "hello",
|
|
"user": "demo",
|
|
"token": "dummy_jwt_token_123",
|
|
"features": {
|
|
"rate_limit": 100,
|
|
"expires_in": 3600
|
|
}
|
|
} |