2024-09-10 05:20:11 +00:00
|
|
|
from fastapi import APIRouter
|
|
|
|
from service.auth_service import Credential
|
|
|
|
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
|
|
@router.post("/auth/login")
|
|
|
|
def login(auth: Credential):
|
2024-09-10 07:36:03 +00:00
|
|
|
|
2024-09-10 05:20:11 +00:00
|
|
|
return {"ok": 1, "token": "Basic {}"}
|