remove redundent code

This commit is contained in:
Andreas Wrede
2026-02-16 10:54:04 -05:00
parent 73b9d05357
commit 75e41eafc4
-8
View File
@@ -131,13 +131,6 @@ async def start(
out.append(f"update started for {n}: {err if err else 'OK'}")
return web.Response(text="\n".join(out))
async def restart(request):
# signal main application to perform restart if needed
# not implemented here - return OK
if log:
log(None, "restart request")
return web.Response(text="restart request")
async def live(request):
# render template from hbd/templates/live.html using Jinja2
# Resolve templates directory relative to the hbd package
@@ -200,7 +193,6 @@ async def start(
web.get("/d", drop),
web.get("/n", register),
web.get("/u", update),
web.get("/r", restart),
web.get("/live", live),
web.get("/static/{path:.*}", static),
web.get("/favicon.ico", favicon),