mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
535 B
30 lines
535 B
from django.conf import settings
|
|
from django.conf.urls import url, include
|
|
|
|
from sapl.api.views import AutorListView
|
|
|
|
from .apps import AppConfig
|
|
|
|
|
|
app_name = AppConfig.name
|
|
|
|
|
|
# router = DefaultRouter()
|
|
|
|
# urlpatterns += router.urls
|
|
|
|
|
|
urlpatterns_api = [
|
|
# url(r'^$', api_root),
|
|
url(r'^autor',
|
|
AutorListView.as_view(),
|
|
name='autor_list'),
|
|
]
|
|
|
|
if settings.DEBUG:
|
|
urlpatterns_api += [
|
|
url(r'^docs', include('rest_framework_docs.urls')), ]
|
|
|
|
urlpatterns = [
|
|
url(r'^api/', include(urlpatterns_api))
|
|
]
|
|
|