Rename toml download to infos
This commit is contained in:
parent
1a1137598e
commit
8c5bd2b61f
@ -17,8 +17,8 @@ from django.urls import path
|
||||
from . import views
|
||||
|
||||
urlpatterns = [
|
||||
path('download/<str:req_mod>/<str:req_ver>/', views.ModuleDownloadView.as_view(), name="api_zip_dl"),
|
||||
path('toml_download/<str:req_mod>/<str:req_ver>/', views.TomlDownloadView.as_view(), name="api_toml_dl"),
|
||||
path('<str:req_mod>/<str:req_ver>/download/', views.ModuleDownloadView.as_view(), name="api_zip_dl"),
|
||||
path('<str:req_mod>/<str:req_ver>/infos/', views.ModuleInfosView.as_view(), name="api_toml_dl"),
|
||||
path('modules/', views.ApiModuleListView.as_view(), name="api_modules_list"),
|
||||
path('versions/<str:name>/', views.ModuleVersionsView.as_view(), name="api_modules_versions"),
|
||||
]
|
||||
|
@ -20,7 +20,7 @@ class ModuleDownloadView(View):
|
||||
response['Content-Disposition'] = f'attachment; filename={module.name}-{version.ver}.zip'
|
||||
return response
|
||||
|
||||
class TomlDownloadView(View):
|
||||
class ModuleInfosView(View):
|
||||
"""
|
||||
Toml download view : returns file response with module toml file based on
|
||||
module name & version
|
||||
|
Loading…
Reference in New Issue
Block a user