From fbdab31bc226bc7202724e5543dfd6e8b9bfa2d5 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Mon, 12 Jun 2023 14:54:49 +0800 Subject: [PATCH] bugfix --- ahserver/auth_api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ahserver/auth_api.py b/ahserver/auth_api.py index 2ddf99c..8db1839 100755 --- a/ahserver/auth_api.py +++ b/ahserver/auth_api.py @@ -48,8 +48,9 @@ class AuthAPI(AppLogger): # setup aiohttp_auth.auth middleware in aiohttp fashion # print('policy = ', policy) auth.setup(app, policy) + print('add auth middleware ....................') app.middlewares.append(self.checkAuth) - app.router.add_route('GET', '/logout', self.logout) + # app.router.add_route('GET', '/logout', self.logout) async def logout(self,request): await auth.forget(request)