aboutsummaryrefslogtreecommitdiffstats
path: root/routes
diff options
context:
space:
mode:
Diffstat (limited to 'routes')
-rw-r--r--routes/healthcheck.py8
-rw-r--r--routes/index.py8
-rw-r--r--routes/invite.py9
3 files changed, 25 insertions, 0 deletions
diff --git a/routes/healthcheck.py b/routes/healthcheck.py
new file mode 100644
index 00000000..11a5fc24
--- /dev/null
+++ b/routes/healthcheck.py
@@ -0,0 +1,8 @@
+# coding=utf-8
+
+
+class Index:
+ path = ["/healthcheck"]
+
+ def get(self, req):
+ return req.Response(json={"status": "ok"})
diff --git a/routes/index.py b/routes/index.py
new file mode 100644
index 00000000..76671ed1
--- /dev/null
+++ b/routes/index.py
@@ -0,0 +1,8 @@
+# coding=utf-8
+
+
+class Index:
+ path = ["/", "/index"]
+
+ def get(self, req):
+ return req.Response("Coming soon:tm:")
diff --git a/routes/invite.py b/routes/invite.py
new file mode 100644
index 00000000..29553345
--- /dev/null
+++ b/routes/invite.py
@@ -0,0 +1,9 @@
+# coding=utf-8
+
+
+class Index:
+ path = ["/invite"]
+
+ def get(self, res):
+ return res.Response(
+ status_code=301, text="http://invite.pythondiscord.com/")