Rename toml download to infos

This commit is contained in:
HugoNeveux 2020-04-30 23:43:48 +02:00
parent 1a1137598e
commit 8c5bd2b61f
2 changed files with 3 additions and 3 deletions

View File

@ -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"),
]

View File

@ -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