modify upload doc url
Showing
3 changed files
with
4 additions
and
2 deletions
| ... | @@ -19,5 +19,5 @@ from django.urls import path, include | ... | @@ -19,5 +19,5 @@ from django.urls import path, include |
| 19 | urlpatterns = [ | 19 | urlpatterns = [ |
| 20 | path('admin/', admin.site.urls), | 20 | path('admin/', admin.site.urls), |
| 21 | path(r'api/users/', include('apps.account.urls')), | 21 | path(r'api/users/', include('apps.account.urls')), |
| 22 | path(r'api/create/v1/', include('apps.doc.urls')), | 22 | path(r'api/create/v1', include('apps.doc.urls')), |
| 23 | ] | 23 | ] | ... | ... |
| ... | @@ -48,6 +48,8 @@ class Command(BaseCommand): | ... | @@ -48,6 +48,8 @@ class Command(BaseCommand): |
| 48 | view_class = view.view_class | 48 | view_class = view.view_class |
| 49 | url_path, path_parameters = pattern[0][0] | 49 | url_path, path_parameters = pattern[0][0] |
| 50 | url_path = unify_url_path_format(url_path) | 50 | url_path = unify_url_path_format(url_path) |
| 51 | if url_path != '/api/create/v1': | ||
| 52 | continue | ||
| 51 | url_path_paramters = getattr(view, 'parameters_doc', None) | 53 | url_path_paramters = getattr(view, 'parameters_doc', None) |
| 52 | if url_path_paramters: | 54 | if url_path_paramters: |
| 53 | url_path_paramters = yaml.load(url_path_paramters) | 55 | url_path_paramters = yaml.load(url_path_paramters) | ... | ... |
-
Please register or sign in to post a comment