aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
authorGravatar Christopher Baklid <[email protected]>2018-02-04 09:25:38 +0100
committerGravatar GitHub <[email protected]>2018-02-04 09:25:38 +0100
commiteecc2deb374dcbd64e49a11e92009be1c17837ac (patch)
treedd910a187e4f6abbdc62cb025482997f73bebdae /app.py
parentsatisfy snekcheck (diff)
parentAdd /invite route (diff)
Merge branch 'master' into route-404-and-healthcheck
Diffstat (limited to 'app.py')
-rw-r--r--app.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/app.py b/app.py
index ce52f216..575f6568 100644
--- a/app.py
+++ b/app.py
@@ -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."
+def _invite():
+ return redirect("https://invite.pythondiscord.com/")
@app.route("/healthcheck")
def _healthcheck():