bb0cc7b2 by 周伟奇

modify upload doc url

1 parent d5c6be4b
......@@ -12,7 +12,7 @@ schemes:
- https
- http
paths:
/api/create/v1/:
/api/create/v1:
post:
tags:
- doc
......
......@@ -19,5 +19,5 @@ from django.urls import path, include
urlpatterns = [
path('admin/', admin.site.urls),
path(r'api/users/', include('apps.account.urls')),
path(r'api/create/v1/', include('apps.doc.urls')),
path(r'api/create/v1', include('apps.doc.urls')),
]
......
......@@ -48,6 +48,8 @@ class Command(BaseCommand):
view_class = view.view_class
url_path, path_parameters = pattern[0][0]
url_path = unify_url_path_format(url_path)
if url_path != '/api/create/v1':
continue
url_path_paramters = getattr(view, 'parameters_doc', None)
if url_path_paramters:
url_path_paramters = yaml.load(url_path_paramters)
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!