mirror of
https://github.com/etesync/server
synced 2024-11-29 12:08:07 +00:00
d8e5c37db1
Merge #65
17 lines
492 B
Python
17 lines
492 B
Python
from django.conf import settings
|
|
from django.conf.urls import include, url
|
|
from django.contrib import admin
|
|
from django.urls import path
|
|
from django.views.generic import TemplateView
|
|
|
|
urlpatterns = [
|
|
url(r"^api/", include("django_etebase.urls")),
|
|
url(r"^admin/", admin.site.urls),
|
|
path("", TemplateView.as_view(template_name="success.html")),
|
|
]
|
|
|
|
if settings.DEBUG:
|
|
urlpatterns += [
|
|
url(r"^api-auth/", include("rest_framework.urls", namespace="rest_framework")),
|
|
]
|