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 self.smtpconfig = globalvar.smtpconfig
def register(self, params): def register(self, params):
APIADDR = "/api/auth/registration/register/:roles" APIADDR = "/api/auth/register/:roles"
loggorilla.prcss(APIADDR, "Define parameters") loggorilla.prcss(APIADDR, "Define parameters")
response = {} response = {}
captcha = params["captcha" ] captcha = params["captcha" ]
@ -92,7 +92,7 @@ class auth:
return response return response
def resend(self, params): def resend(self, params):
APIADDR = "/api/auth/registration/resend" APIADDR = "/api/auth/resend"
loggorilla.prcss(APIADDR, "Define parameters") loggorilla.prcss(APIADDR, "Define parameters")
response = {} response = {}
email = params["email"].lower() email = params["email"].lower()