From f784406cf42bd1fb0023b810d4b3c7109bcd3192 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 4 Mar 2024 12:44:48 +0000 Subject: [PATCH] fireinfo: Move back the profile handler Clients that send a profile won't be updated to the new domain. Signed-off-by: Michael Tremer --- src/web/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/web/__init__.py b/src/web/__init__.py index 31aa426a..47806f03 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -185,7 +185,6 @@ class Application(tornado.web.Application): (r"/fireinfo/profile/([a-z0-9]{40})", fireinfo.ProfileHandler), (r"/fireinfo/processors", fireinfo.ProcessorsHandler), (r"/fireinfo/releases", fireinfo.ReleasesHandler), - (r"/fireinfo/send/([a-z0-9]+)", fireinfo.ProfileSendHandler), # Lists (r"/lists", lists.IndexHandler), @@ -291,6 +290,8 @@ class Application(tornado.web.Application): # fireinfo.ipfire.org - LEGACY REDIRECTION self.add_handlers(r"fireinfo\.([a-z]+\.dev\.)?ipfire\.org", [ + (r"/fireinfo/send/([a-z0-9]+)", fireinfo.ProfileSendHandler), + (r"/", tornado.web.RedirectHandler, { "url" : "https://www.ipfire.org/fireinfo/" }), # Admin -- 2.47.2