[lib.domain] use args_check by default, even on async functions
This commit is contained in:
parent
a6985fa9bf
commit
55878df260
|
@ -168,7 +168,7 @@ def gen_routes(m_router: ModuleType,
|
|||
if not inspect.iscoroutinefunction(fct):
|
||||
return route_decorator(fct), params
|
||||
else:
|
||||
return fct, params
|
||||
return acl.args_check(fct), params
|
||||
|
||||
|
||||
def gen_router_routes(m_router: ModuleType, path: List[str]) -> \
|
||||
|
|
Loading…
Reference in New Issue