Added countries app with get views (filter view and get by alpha2 view)

This commit is contained in:
ITQ
2024-02-27 21:56:49 +03:00
parent 607f6de88c
commit a2253a12c5
14 changed files with 108 additions and 16 deletions
+12
View File
@@ -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",
),
]