Small refactoring

This commit is contained in:
ITQ
2024-03-03 09:05:47 +03:00
parent 3c335f9efe
commit 8fa04faa55
4 changed files with 8 additions and 6 deletions
+4 -2
View File
@@ -3,10 +3,12 @@ from django.urls import path
import api.countries.views
urlpatterns = [
path("", api.countries.views.CountryListView.as_view(), name="countries"),
path(
"", api.countries.views.CountryListApiView.as_view(), name="countries"
),
path(
"/<str:alpha2>",
api.countries.views.CountryByAlpha2View.as_view(),
api.countries.views.CountryByAlpha2ApiView.as_view(),
name="country_by_alpha2",
),
]