diff options
author | 2018-02-04 09:25:38 +0100 | |
---|---|---|
committer | 2018-02-04 09:25:38 +0100 | |
commit | eecc2deb374dcbd64e49a11e92009be1c17837ac (patch) | |
tree | dd910a187e4f6abbdc62cb025482997f73bebdae | |
parent | satisfy snekcheck (diff) | |
parent | Add /invite route (diff) |
Merge branch 'master' into route-404-and-healthcheck
-rw-r--r-- | app.py | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -6,6 +6,7 @@ import os # Snekchek from flask import Flask from flask import jsonify +from flask import redirect app = Flask(__name__) @@ -14,8 +15,11 @@ app._secret_key = os.environ.get("WEBPAGE_SECRET_KEY") @app.route("/") def _index(): - return "Robots are taking over" + return "Robots are taking over. doot." [email protected]("/invite") +def _invite(): + return redirect("https://invite.pythondiscord.com/") @app.route("/healthcheck") def _healthcheck(): |