mirror of
https://github.com/devproje/balance-application.git
synced 2024-10-21 00:11:21 +09:00
8 lines
193 B
Python
8 lines
193 B
Python
from fastapi import APIRouter
|
|
from service.auth_service import Credential
|
|
|
|
router = APIRouter()
|
|
|
|
@router.post("/auth/login")
|
|
def login(auth: Credential):
|
|
return {"ok": 1, "token": "Basic {}"}
|