diff options
author | 2018-02-05 20:30:22 +0100 | |
---|---|---|
committer | 2018-02-05 20:30:22 +0100 | |
commit | 0497b00e35d70849e7d3a0dd490105fc1f770878 (patch) | |
tree | ea6d1ebcfe263613fe3c2512681de30b4f662bba /app.py | |
parent | Major update (diff) |
Minifix
Signed-off-by: martmists <[email protected]>
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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) |