From 3ec0f2ab4fe267faf06fbf4cfa99296f70312423 Mon Sep 17 00:00:00 2001 From: Kierre Date: Mon, 20 Oct 2025 18:18:21 -0400 Subject: [PATCH] Hammerhead `reload-config` endpoint --- vona/custom/hammerhead.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vona/custom/hammerhead.py b/vona/custom/hammerhead.py index 442f613..0942d7c 100644 --- a/vona/custom/hammerhead.py +++ b/vona/custom/hammerhead.py @@ -16,10 +16,15 @@ hammerhead = Blueprint("hammerhead", __name__) async def uptime(): return jsonify({"started_at": config.the_funny_number}) + @hammerhead.route("/_hammerhead/version") async def version(): return jsonify({"version": globals.version}) +@server.route("/_hammerhead/admin/reload-config") +async def reload_config(): + return jsonify({}) + @hammerhead.route("/_hammerhead/admin/server-info/") async def server_info(server):