mirror of
https://github.com/etesync/server
synced 2024-11-13 20:38:55 +00:00
Only expose drf's auth in debug mode.
This commit is contained in:
parent
5d9b47531b
commit
5c803d8a51
@ -1,3 +1,4 @@
|
||||
from django.conf import settings
|
||||
from django.conf.urls import include, url
|
||||
from django.contrib import admin
|
||||
from django.urls import path
|
||||
@ -6,7 +7,11 @@ from django.views.generic import TemplateView
|
||||
urlpatterns = [
|
||||
url(r'^api/', include('django_etebase.urls')),
|
||||
url(r'^admin/', admin.site.urls),
|
||||
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||
|
||||
path('', TemplateView.as_view(template_name='success.html')),
|
||||
]
|
||||
|
||||
if settings.DEBUG:
|
||||
urlpatterns += [
|
||||
url(r'^api-auth/', include('rest_framework.urls', namespace='rest_framework')),
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user