diff options
author | 2018-02-05 20:26:54 +0100 | |
---|---|---|
committer | 2018-02-05 20:26:54 +0100 | |
commit | 80a1ab522e7a49f3ea1168d8658fbff293c866f1 (patch) | |
tree | 206a45b1a68c273db43ad04b105bcd3e7c48f565 /routes/index.py | |
parent | Dynamic route loader; proper application structure (diff) |
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 <[email protected]>
Diffstat (limited to 'routes/index.py')
-rw-r--r-- | routes/index.py | 8 |
1 files changed, 8 insertions, 0 deletions
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:") |