Skip to content

Commit 9afb595

Browse files
committed
fix(config): delegate all API routes through include('api.urls')
config/urls.py was manually importing TripPlanView and hardcoding one path — api/urls.py was completely ignored by Django. geocode/reverse/ returned 404 in production despite being correctly registered in api/urls.py. Fix: replace manual route with include() pattern so all current and future api/ routes work automatically.
1 parent 30b06d4 commit 9afb595

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

backend/config/urls.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
from django.urls import path
2-
from api.views import TripPlanView
1+
from django.urls import path, include
32

43
urlpatterns = [
5-
path("api/trip/plan/", TripPlanView.as_view()),
4+
path("api/", include("api.urls")),
65
]

0 commit comments

Comments
 (0)