@api_view(['GET'])
def get_public_url(request):
    if (not request.user.is_authenticated):
        return JsonResponse({'error': 'You must be logged into access this endpoint.'})
    else:
        public_url = config.PUBLIC_URL
        return JsonResponse({'public_url': public_url})
@api_view(['GET'])
def get_public_url(request):
    if (not request.user.is_authenticated):
        return JsonResponse({'error': 'You must be logged into access this endpoint.'})
    else:
        public_url = config.PUBLIC_URL
        return JsonResponse({'public_url': public_url})