1
0
Fork 0
mirror of https://github.com/seanmorley15/AdventureLog.git synced 2025-08-02 03:35:18 +02:00

Remove unused GeoJSONView and related URL path; clean up README links

This commit is contained in:
Sean Morley 2024-11-03 22:57:07 -05:00
parent 3df124b250
commit 7988ba4d68
15 changed files with 3 additions and 251909 deletions

View file

@ -2,7 +2,7 @@
from django.urls import include, path
from rest_framework.routers import DefaultRouter
from .views import CountryViewSet, RegionViewSet, VisitedRegionViewSet, regions_by_country, visits_by_country, GeoJSONView
from .views import CountryViewSet, RegionViewSet, VisitedRegionViewSet, regions_by_country, visits_by_country
router = DefaultRouter()
router.register(r'countries', CountryViewSet, basename='countries')
@ -12,6 +12,5 @@ router.register(r'visitedregion', VisitedRegionViewSet, basename='visitedregion'
urlpatterns = [
path('', include(router.urls)),
path('<str:country_code>/regions/', regions_by_country, name='regions-by-country'),
path('<str:country_code>/visits/', visits_by_country, name='visits-by-country'),
path('geojson/', GeoJSONView.as_view({'get': 'list'}), name='geojson'),
path('<str:country_code>/visits/', visits_by_country, name='visits-by-country')
]