- commit
- 1e4ba23e73dc95c129cb7e8e1424db51110692f7
- parent
- 58637e82889bf9c9a6785a6b95aef76154ac50ab
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2025-02-07 13:54
use add_get to support HEAD requests
Diffstat
| M | plutopluto/__init__.py | 6 | +++--- |
1 files changed, 3 insertions, 3 deletions
diff --git a/plutopluto/__init__.py b/plutopluto/__init__.py
@@ -222,9 +222,9 @@ def main(): 222 222 223 223 app = web.Application() 224 224 app.router.add_static('/static', BASE_DIR / 'static')225 -1 app.router.add_route('GET', '', route_index)226 -1 app.router.add_route('GET', '/parse', route_parse)227 -1 app.router.add_route('GET', '/config', route_config)-1 225 app.router.add_get('', route_index) -1 226 app.router.add_get('/parse', route_parse) -1 227 app.router.add_get('/config', route_config) 228 228 web.run_app(app, host='localhost', port=args.port) 229 229 230 230