Small refactoring
This commit is contained in:
@@ -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",
|
||||
),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user