bugfix
This commit is contained in:
parent
00a2a3e085
commit
e36548d7f3
@ -38,6 +38,7 @@ class AuthAPI(AppLogger):
|
|||||||
include_ip=True)
|
include_ip=True)
|
||||||
|
|
||||||
# setup aiohttp_auth.auth middleware in aiohttp fashion
|
# setup aiohttp_auth.auth middleware in aiohttp fashion
|
||||||
|
# print('policy = ', policy)
|
||||||
auth.setup(app, policy)
|
auth.setup(app, policy)
|
||||||
app.middlewares.append(self.checkAuth)
|
app.middlewares.append(self.checkAuth)
|
||||||
app.router.add_route('GET', '/logout', self.logout)
|
app.router.add_route('GET', '/logout', self.logout)
|
||||||
|
@ -315,10 +315,6 @@ class ProcessorResource(AppLogger, StaticResource,Url2File):
|
|||||||
processor = FunctionProcessor(path,self,a)
|
processor = FunctionProcessor(path,self,a)
|
||||||
return processor
|
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:
|
for word, handlername in self.y_processors:
|
||||||
if fpath.endswith(word):
|
if fpath.endswith(word):
|
||||||
Klass = getProcessor(handlername)
|
Klass = getProcessor(handlername)
|
||||||
|
Loading…
Reference in New Issue
Block a user