From: Michael Tremer Date: Mon, 4 Mar 2024 12:44:48 +0000 (+0000) Subject: fireinfo: Move back the profile handler X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f784406cf42bd1fb0023b810d4b3c7109bcd3192;p=ipfire.org.git fireinfo: Move back the profile handler Clients that send a profile won't be updated to the new domain. Signed-off-by: Michael Tremer --- 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