From: Michael Tremer Date: Mon, 24 Jul 2023 15:00:23 +0000 (+0000) Subject: web: Move API calls for authentication into main vhost X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=86d86819e203e9a0ecc7fea503526c79aa5f1b83;p=ipfire.org.git web: Move API calls for authentication into main vhost Signed-off-by: Michael Tremer --- diff --git a/src/web/__init__.py b/src/web/__init__.py index c32322c5..57b6006e 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -191,6 +191,10 @@ class Application(tornado.web.Application): (r"/legal", StaticHandler, { "template" : "legal.html" }), (r"/help", StaticHandler, { "template" : "help.html" }), + # API + (r"/api/check/email", auth.APICheckEmail), + (r"/api/check/uid", auth.APICheckUID), + # Handle old pages that have moved elsewhere (r"/donation", tornado.web.RedirectHandler, { "url" : "/donate" }), (r"/download", tornado.web.RedirectHandler, { "url" : "/downloads" }), @@ -339,10 +343,6 @@ class Application(tornado.web.Application): # Serve any static files (r"/static/(.*)", tornado.web.StaticFileHandler, { "path" : self.settings.get("static_path") }), - - # API - (r"/api/check/email", auth.APICheckEmail), - (r"/api/check/uid", auth.APICheckUID), ] + authentication_handlers) # wiki.ipfire.org