(
request: Request,
data: AdminLoginRequest,
)
| 18 | response_model=BaseDataResponse, |
| 19 | ) |
| 20 | async def api_login_admin( |
| 21 | request: Request, |
| 22 | data: AdminLoginRequest, |
| 23 | ): |
| 24 | admin: Admin = await login_admin( |
| 25 | username=data.username, |
| 26 | password=data.password, |
| 27 | ) |
| 28 | return BaseDataResponse( |
| 29 | data=admin.to_response_dict(), |
| 30 | ) |
| 31 | |
| 32 | |
| 33 | @router.post( |
nothing calls this directly
no test coverage detected