Expose login redirect URL in unauthenticated /api view

This commit is contained in:
Graham Mainwaring 2019-12-10 15:46:56 -05:00
parent ab2f212b04
commit 732da52239

View File

@ -60,6 +60,7 @@ class ApiRootView(APIView):
data['oauth2'] = drf_reverse('api:oauth_authorization_root_view')
data['custom_logo'] = settings.CUSTOM_LOGO
data['custom_login_info'] = settings.CUSTOM_LOGIN_INFO
data['login_redirect_override'] = settings.LOGIN_REDIRECT_OVERRIDE
return Response(data)