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