From 80a1ab522e7a49f3ea1168d8658fbff293c866f1 Mon Sep 17 00:00:00 2001 From: martmists Date: Mon, 5 Feb 2018 20:26:54 +0100 Subject: Major update - Switch to Japronto - More linters - Rewrite route handling - Rewrite error handling - Rewrite static handling - Error when no `Index` propery is found - Probably some more stuff? idk Code needs testing; Maybe we could use pytest? Signed-off-by: martmists --- routes/invite.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 routes/invite.py (limited to 'routes/invite.py') 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/") -- cgit v1.2.3