neddit

the frontend of the frontpage of the internet  https://neddit.ce9e.org
git clone https://git.ce9e.org/neddit.git

commit
327dcf1d44170295023f6af4f4f8baacb8b1774b
parent
a2db7a3ac2706973a9153ad809b51dd47fc0e915
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2024-04-22 09:40
support HEAD requests

Diffstat

M neddit.py 4 ++--

1 files changed, 2 insertions, 2 deletions


diff --git a/neddit.py b/neddit.py

@@ -124,6 +124,6 @@ if __name__ == '__main__':
  124   124 
  125   125     app = web.Application()
  126   126     app.router.add_static('/static', BASE_DIR / 'static')
  127    -1     app.router.add_route('GET', '', generic)
  128    -1     app.router.add_route('GET', '/{path:.*}', generic)
   -1   127     app.router.add_get('', generic)
   -1   128     app.router.add_get('/{path:.*}', generic)
  129   129     web.run_app(app, host='localhost', port=args.port)