Пример #1
0
 def inner(func):
     return self.app.route(rule=path, methods=['POST'],
                           **kwargs)(require_tenant(func))
Пример #2
0
 def inner(func):
     return self.app.route(rule=path, **kwargs)(require_tenant(func))
Пример #3
0
 def inner(func):
     if not anonymous:
         func = require_tenant(func)
     func = self.app.route(*args, **kwargs)(func)
     return func
Пример #4
0
 def inner(func):
     return self.app.route(rule=path, **kwargs)(require_tenant(func))
Пример #5
0
 def inner(func):
     f = self.app.route(*args, **kwargs)(func)
     if not anonymous:
         f = require_tenant(f)
     return f
Пример #6
0
 def inner(func):
     return self.app.route(rule=path, methods=['POST'], **kwargs)(require_tenant(func))