瀏覽代碼

Feature: Use api/v2 instead of drf_api/

pull/139/head
winkidney 5 年之前
父節點
當前提交
109c46252a
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      pinry/urls.py

+ 2
- 2
pinry/urls.py 查看文件

@@ -13,9 +13,9 @@ admin.autodiscover()

urlpatterns = [
# drf api
url(r'^drf_api/', include(drf_router.urls)),
url(r'^api/v2/', include(drf_router.urls)),
url(r'^api-auth/', include('rest_framework.urls', namespace="rest_framework")),
url(r'^drf_api/docs/', include_docs_urls(title='PinryAPI', schema_url='/')),
url(r'^api/v2/docs/', include_docs_urls(title='PinryAPI', schema_url='/')),

# old api and views
url(r'^admin/', include(admin.site.urls)),


Loading…
取消
儲存