mirror of
https://github.com/seanmorley15/AdventureLog.git
synced 2026-05-09 15:35:46 -04:00
- Introduced ItineraryViewSet for managing itinerary items with create and reorder functionalities. - Added itinerary linking capabilities in CollectionModal and CollectionItineraryPlanner components. - Implemented new ItineraryLinkModal for linking existing items to specific dates. - Enhanced the frontend with new modals for creating locations, lodging, transportation, notes, and checklists. - Updated the backend to handle itinerary item creation and reordering with appropriate permissions. - Improved data handling for unscheduled items and their association with the itinerary. - Added new dependencies to the frontend for enhanced functionality.
32 lines
1.7 KiB
Python
32 lines
1.7 KiB
Python
from django.urls import include, path
|
|
from rest_framework.routers import DefaultRouter
|
|
from adventures.views import *
|
|
|
|
router = DefaultRouter()
|
|
router.register(r'locations', LocationViewSet, basename='locations')
|
|
router.register(r'collections', CollectionViewSet, basename='collections')
|
|
router.register(r'stats', StatsViewSet, basename='stats')
|
|
router.register(r'generate', GenerateDescription, basename='generate')
|
|
router.register(r'tags', ActivityTypesView, basename='tags')
|
|
router.register(r'transportations', TransportationViewSet, basename='transportations')
|
|
router.register(r'notes', NoteViewSet, basename='notes')
|
|
router.register(r'checklists', ChecklistViewSet, basename='checklists')
|
|
router.register(r'images', ContentImageViewSet, basename='images')
|
|
router.register(r'reverse-geocode', ReverseGeocodeViewSet, basename='reverse-geocode')
|
|
router.register(r'categories', CategoryViewSet, basename='categories')
|
|
router.register(r'ics-calendar', IcsCalendarGeneratorViewSet, basename='ics-calendar')
|
|
router.register(r'search', GlobalSearchView, basename='search')
|
|
router.register(r'attachments', AttachmentViewSet, basename='attachments')
|
|
router.register(r'lodging', LodgingViewSet, basename='lodging')
|
|
router.register(r'recommendations', RecommendationsViewSet, basename='recommendations'),
|
|
router.register(r'backup', BackupViewSet, basename='backup')
|
|
router.register(r'trails', TrailViewSet, basename='trails')
|
|
router.register(r'activities', ActivityViewSet, basename='activities')
|
|
router.register(r'visits', VisitViewSet, basename='visits')
|
|
router.register(r'itineraries', ItineraryViewSet, basename='itineraries')
|
|
|
|
urlpatterns = [
|
|
# Include the router under the 'api/' prefix
|
|
path('', include(router.urls)),
|
|
]
|