Added flask support #70 #75 #71

Merged
edraft merged 107 commits from #70 into 0.3 2022-11-05 13:55:42 +01:00
Showing only changes of commit 5cbd6ec00b - Show all commits

View File

@ -74,6 +74,11 @@ class AuthController:
await self._auth_service.add_auth_user_async(dto)
return '', 200
@Route.post(f'{BasePath}/register/<id>')
async def register_id(self, id: str):
result = await self._auth_service.confirm_email_async(id)
return jsonify(result)
@Route.post(f'{BasePath}/login')
async def login(self) -> Response:
dto: AuthUserDTO = JSONProcessor.process(AuthUserDTO, request.get_json(force=True, silent=True))