diff options
author | 2018-02-04 03:46:42 +0000 | |
---|---|---|
committer | 2018-02-04 03:46:42 +0000 | |
commit | 16d5d69ca87310d7fc721b3a70e35ac301384b0f (patch) | |
tree | 1f5a33c332b7c1cb472ee32194c434763ba56999 | |
parent | test travis build notifs (diff) |
Add /invite route
-rw-r--r-- | app.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -4,7 +4,7 @@ import os # Snekchek -from flask import Flask +from flask import Flask, redirect app = Flask(__name__) @@ -15,6 +15,9 @@ app._secret_key = os.environ.get("WEBPAGE_SECRET_KEY") def _index(): return "Robots are taking over. doot." [email protected]("/invite") +def _invite(): + return redirect("https://invite.pythondiscord.com/") if __name__ == '__main__': app.run(port=int(os.environ.get("WEBPAGE_PORT")), debug=False) |