2023-05-21 20:46:07 +03:00
|
|
|
from django.urls import path
|
|
|
|
|
2023-05-23 23:36:45 +03:00
|
|
|
from passfinder.events.api.views import (
|
|
|
|
BuildRouteApiView,
|
|
|
|
ListRegionApiView,
|
|
|
|
ListCityApiView,
|
|
|
|
SaveRouteSerializer,
|
|
|
|
)
|
2023-05-21 20:46:07 +03:00
|
|
|
|
|
|
|
app_name = "events"
|
|
|
|
|
|
|
|
urlpatterns = [
|
2023-05-23 00:33:04 +03:00
|
|
|
path("route/build", BuildRouteApiView.as_view(), name="build_route"),
|
2023-05-23 23:36:45 +03:00
|
|
|
path("route/save", SaveRouteSerializer.as_view(), name="save_route"),
|
|
|
|
path("data/regions", ListRegionApiView.as_view(), name="regions"),
|
|
|
|
path("data/cities", ListCityApiView.as_view(), name="cities"),
|
2023-05-21 20:46:07 +03:00
|
|
|
]
|