Atualizar app/app.py
This commit is contained in:
@@ -71,6 +71,15 @@ def require_capability(cap):
|
|||||||
return decorator
|
return decorator
|
||||||
|
|
||||||
|
|
||||||
|
# ================
|
||||||
|
# AUTH
|
||||||
|
# ================
|
||||||
|
|
||||||
|
@app.route("/auth_mode")
|
||||||
|
def auth_mode():
|
||||||
|
return jsonify({"mode": app.config["AUTH_MODE"]})
|
||||||
|
|
||||||
|
|
||||||
oauth = OAuth(app)
|
oauth = OAuth(app)
|
||||||
google = oauth.register(
|
google = oauth.register(
|
||||||
name="google",
|
name="google",
|
||||||
|
|||||||
Reference in New Issue
Block a user