[middleware] removed decorator from acl_middleware
This commit is contained in:
parent
4be18f8344
commit
65e0d09ff8
|
@ -2,7 +2,6 @@
|
||||||
from starlette.requests import Request
|
from starlette.requests import Request
|
||||||
from starlette.exceptions import HTTPException
|
from starlette.exceptions import HTTPException
|
||||||
|
|
||||||
@app.middleware('http')
|
|
||||||
async def acl_middleware(request: Request, call_next):
|
async def acl_middleware(request: Request, call_next):
|
||||||
""" Checks the "acls" key in the scope and applies the
|
""" Checks the "acls" key in the scope and applies the
|
||||||
corresponding functions in the current module's acl lib.
|
corresponding functions in the current module's acl lib.
|
||||||
|
|
Loading…
Reference in New Issue