From 86d86819e203e9a0ecc7fea503526c79aa5f1b83 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Mon, 24 Jul 2023 15:00:23 +0000 Subject: [PATCH] web: Move API calls for authentication into main vhost Signed-off-by: Michael Tremer --- src/web/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 -- 2.47.3