From aff34d50b7dc1315a1d867266c4608ebea9685ca Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Mon, 19 Feb 2024 03:58:04 +0300 Subject: web_kbn: redirect from / to /main.cgi --- bin/web_kbn.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/web_kbn.py b/bin/web_kbn.py index 21ae2ef..96b6461 100755 --- a/bin/web_kbn.py +++ b/bin/web_kbn.py @@ -245,6 +245,11 @@ async def render(req: web.Request, return response +@routes.get('/') +async def index0(req: web.Request): + raise web.HTTPFound('/main.cgi') + + @routes.get('/main.cgi') async def index(req: web.Request): ctx = {} -- cgit v1.2.3