From 3b56ba845cbfd2876583a1f59d39cd9d6db77708 Mon Sep 17 00:00:00 2001 From: Dita Aji Pratama Date: Sat, 8 Feb 2025 13:59:56 +0700 Subject: [PATCH] Simplify the API routes --- modules/api/auth.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/api/auth.py b/modules/api/auth.py index 0e7d86b..96eb9ba 100644 --- a/modules/api/auth.py +++ b/modules/api/auth.py @@ -20,7 +20,7 @@ class auth: self.smtpconfig = globalvar.smtpconfig def register(self, params): - APIADDR = "/api/auth/registration/register/:roles" + APIADDR = "/api/auth/register/:roles" loggorilla.prcss(APIADDR, "Define parameters") response = {} captcha = params["captcha" ] @@ -92,7 +92,7 @@ class auth: return response def resend(self, params): - APIADDR = "/api/auth/registration/resend" + APIADDR = "/api/auth/resend" loggorilla.prcss(APIADDR, "Define parameters") response = {} email = params["email"].lower()