[routes] skip acls that are falsy
This commit is contained in:
parent
63b73a2bc1
commit
1e1ff2fb69
|
@ -96,7 +96,7 @@ def api_routes(m_dom: ModuleType) -> Generator:
|
|||
l_params = []
|
||||
|
||||
for param in params:
|
||||
if 'acl' not in param.keys():
|
||||
if 'acl' not in param.keys() or not param['acl']:
|
||||
continue
|
||||
|
||||
l_params.append(param.copy())
|
||||
|
|
|
@ -39,7 +39,6 @@ async def get_api_routes(request, *args, **kwargs):
|
|||
description: Returns the current API routes description (HalfAPI 0.2.1)
|
||||
as a JSON object
|
||||
"""
|
||||
assert 'api' in request.scope
|
||||
return ORJSONResponse(request.scope['api'])
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue