This commit is contained in:
yumoqing 2023-04-06 16:20:19 +08:00
parent 00a2a3e085
commit e36548d7f3
2 changed files with 1 additions and 4 deletions

View File

@ -38,6 +38,7 @@ class AuthAPI(AppLogger):
include_ip=True)
# setup aiohttp_auth.auth middleware in aiohttp fashion
# print('policy = ', policy)
auth.setup(app, policy)
app.middlewares.append(self.checkAuth)
app.router.add_route('GET', '/logout', self.logout)

View File

@ -315,10 +315,6 @@ class ProcessorResource(AppLogger, StaticResource,Url2File):
processor = FunctionProcessor(path,self,a)
return processor
if self.request_filename is None:
self.error('%s:not found' % str(request.url))
raise HTTPNotFound
for word, handlername in self.y_processors:
if fpath.endswith(word):
Klass = getProcessor(handlername)