Simplify the API routes

This commit is contained in:
Dita Aji Pratama 2025-02-08 13:59:56 +07:00
parent c9993e2aba
commit 3b56ba845c

View File

@ -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()