mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2024-11-29 04:23:42 +03:00
Merge pull request #1 from kevinmanncito/optional-trailing-slash
Making trailing slashes optional for all rest endpoints
This commit is contained in:
commit
61a924c7ab
|
@ -5,7 +5,7 @@ from .views import RegisterView, VerifyEmailView
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
url(r'^$', RegisterView.as_view(), name='rest_register'),
|
url(r'^$', RegisterView.as_view(), name='rest_register'),
|
||||||
url(r'^verify-email/$', VerifyEmailView.as_view(), name='rest_verify_email'),
|
url(r'^verify-email/?$', VerifyEmailView.as_view(), name='rest_verify_email'),
|
||||||
|
|
||||||
# This url is used by django-allauth and empty TemplateView is
|
# This url is used by django-allauth and empty TemplateView is
|
||||||
# defined just to allow reverse() call inside app, for example when email
|
# defined just to allow reverse() call inside app, for example when email
|
||||||
|
|
|
@ -7,14 +7,14 @@ from rest_auth.views import (
|
||||||
|
|
||||||
urlpatterns = [
|
urlpatterns = [
|
||||||
# URLs that do not require a session or valid token
|
# URLs that do not require a session or valid token
|
||||||
url(r'^password/reset/$', PasswordResetView.as_view(),
|
url(r'^password/reset/?$', PasswordResetView.as_view(),
|
||||||
name='rest_password_reset'),
|
name='rest_password_reset'),
|
||||||
url(r'^password/reset/confirm/$', PasswordResetConfirmView.as_view(),
|
url(r'^password/reset/confirm/?$', PasswordResetConfirmView.as_view(),
|
||||||
name='rest_password_reset_confirm'),
|
name='rest_password_reset_confirm'),
|
||||||
url(r'^login/$', LoginView.as_view(), name='rest_login'),
|
url(r'^login/?$', LoginView.as_view(), name='rest_login'),
|
||||||
# URLs that require a user to be logged in with a valid session / token.
|
# URLs that require a user to be logged in with a valid session / token.
|
||||||
url(r'^logout/$', LogoutView.as_view(), name='rest_logout'),
|
url(r'^logout/?$', LogoutView.as_view(), name='rest_logout'),
|
||||||
url(r'^user/$', UserDetailsView.as_view(), name='rest_user_details'),
|
url(r'^user/?$', UserDetailsView.as_view(), name='rest_user_details'),
|
||||||
url(r'^password/change/$', PasswordChangeView.as_view(),
|
url(r'^password/change/?$', PasswordChangeView.as_view(),
|
||||||
name='rest_password_change'),
|
name='rest_password_change'),
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user