19 lines
418 B
Python
19 lines
418 B
Python
from fastapi import APIRouter, HTTPException
|
|
|
|
router = APIRouter()
|
|
|
|
@router.post("/login")
|
|
async def login_user(
|
|
username: str = "user",
|
|
password: str = "password"
|
|
):
|
|
"""Login endpoint"""
|
|
return {
|
|
"message": "Login successful",
|
|
"user": username,
|
|
"token": "dummy_jwt_token_123",
|
|
"features": {
|
|
"rate_limit": 100,
|
|
"expires_in": 3600
|
|
}
|
|
} |