feat: add public URL endpoint and update user type to include password status

This commit is contained in:
Sean Morley
2025-01-06 18:53:08 -05:00
parent 59b41c01df
commit e19781d7ac
15 changed files with 248 additions and 51 deletions

View File

@@ -1,6 +1,10 @@
from django.http import JsonResponse
from django.middleware.csrf import get_token
from os import getenv
def get_csrf_token(request):
csrf_token = get_token(request)
return JsonResponse({'csrfToken': csrf_token})
def get_public_url(request):
return JsonResponse({'PUBLIC_URL': getenv('PUBLIC_URL')})