Added countries app with get views (filter view and get by alpha2 view)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from django.urls import path
|
||||
|
||||
import countries.views
|
||||
|
||||
urlpatterns = [
|
||||
path("", countries.views.CountryListView.as_view(), name="countries"),
|
||||
path(
|
||||
"<str:alpha2>/",
|
||||
countries.views.CountryByAlpha2View.as_view(),
|
||||
name="country_by_alpha2",
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user