aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
authorGravatar martmists <[email protected]>2018-02-05 20:30:22 +0100
committerGravatar martmists <[email protected]>2018-02-05 20:30:22 +0100
commit0497b00e35d70849e7d3a0dd490105fc1f770878 (patch)
treeea6d1ebcfe263613fe3c2512681de30b4f662bba /app.py
parentMajor update (diff)
Minifix
Signed-off-by: martmists <[email protected]>
Diffstat (limited to 'app.py')
-rw-r--r--app.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/app.py b/app.py
index 5efc1ee7..38770870 100644
--- a/app.py
+++ b/app.py
@@ -96,12 +96,12 @@ routes = find_routes("routes")
static = find_static_files("static")
errors = find_errors("error_handlers")
-for route in routes:
- app.router.add_route(route.path, route.run, method=route.method)
-
-for path, method, handle in static:
+for path, method, handle in routes:
app.router.add_route(path, handle, method=method)
+for path, handle in static:
+ app.router.add_route(path, handle, method="GET")
+
for errcode, handler in errors:
app.add_error_handler(errcode, handler)