diff options
author | 2018-02-05 22:50:51 +0000 | |
---|---|---|
committer | 2018-02-05 22:50:51 +0000 | |
commit | 962be094cdcbf19b3a3939bd4bfa44162b3d2a86 (patch) | |
tree | 1a522029601bb1fd96652cef3279f628c4e77e39 /routes | |
parent | Finally fix this garbage (diff) |
Mart's Missing Files 2: Electric Boogaloo
Diffstat (limited to 'routes')
-rw-r--r-- | routes/healthcheck.py | 14 | ||||
-rw-r--r-- | routes/index.py | 11 | ||||
-rw-r--r-- | routes/invite.py | 12 |
3 files changed, 37 insertions, 0 deletions
diff --git a/routes/healthcheck.py b/routes/healthcheck.py new file mode 100644 index 00000000..f06b18d3 --- /dev/null +++ b/routes/healthcheck.py @@ -0,0 +1,14 @@ +# coding=utf-8 + +# External Libraries +from werkzeug.wrappers import Response + +# Site Internals +import ujson as json + + +class Index: + path = ["/healthcheck"] + + def get(self): + return Response(json.dumps({"status": "ok"})) diff --git a/routes/index.py b/routes/index.py new file mode 100644 index 00000000..403e5452 --- /dev/null +++ b/routes/index.py @@ -0,0 +1,11 @@ +# coding=utf-8 + +# External Libraries +from werkzeug.wrappers import Response + + +class Index: + path = ["/", "/index"] + + def get(self): + return Response("Coming soon:tm:") diff --git a/routes/invite.py b/routes/invite.py new file mode 100644 index 00000000..a3400cf2 --- /dev/null +++ b/routes/invite.py @@ -0,0 +1,12 @@ +# coding=utf-8 + +# External Libraries +from werkzeug.wrappers import Response + + +class Index: + path = ["/invite"] + + def get(self): + return Response( + status_code=301, text="http://invite.pythondiscord.com/") |