Esempio n. 1
0
def graphql():
    graphqli = os.environ.get('USE_GRAPHQLI') or False
    g = GraphQLView.as_view(
        'graphql',
        schema=schema,
        context={'session': db.session},
        graphiql= graphqli
    )

    return jwt_optional(g)
Esempio n. 2
0
def jwt_nontest_optional(func):
    if TESTING["status"]:
        return func
    else:
        return jwt_optional(func)
Esempio n. 3
0
def jwt_nontest_optional(func):
    if TESTING:
        return func
    else:
        return jwt_optional(func)
def login_optional(func):
    return jwt_optional(func)