rcnn/backend/apps/coaster/urls.py
munsel 42197bfbc9 add coaster naming, challenge detail panel, and fix GeoJSON id bug
- Coaster editor: name input in top bar, saved/loaded with coaster data
- CoasterListPanel: show coaster name prominently alongside creator username
- ChallengesListPanel: drill-in detail view with center map, plan coaster,
  and accept challenge buttons; coaster count shown in list and detail
- AllCoastersPanel: coaster count visible in challenge entries
- Backend: add coaster_count to ChallengeMapSerializer and ChallengeDetailSerializer
- Fix: ChallengeLayer and ChallengesListPanel were reading f.properties.id
  (always undefined) instead of f.id — GeoFeatureModelSerializer puts the pk
  at the GeoJSON Feature level, not in properties
- Types: remove id from ChallengeMapProperties to reflect actual data shape

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-23 01:43:10 +02:00

17 lines
500 B
Python

from django.urls import path
from .views import (
CoasterSimulateView,
CoasterListCreateView,
CoasterDeleteView,
CoasterGlobalListView,
CoasterRateView,
)
urlpatterns = [
path("simulate/", CoasterSimulateView.as_view()),
path("coasters/", CoasterGlobalListView.as_view()),
path("challenges/<uuid:challenge_id>/coasters/", CoasterListCreateView.as_view()),
path("<uuid:pk>/", CoasterDeleteView.as_view()),
path("<uuid:pk>/rate/", CoasterRateView.as_view()),
]