aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)