You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
10 lines
483 B
Python
10 lines
483 B
Python
from django.urls import path
|
|
from vehicles.views import vehiclesView, VehicleListCreateAPIView, VehicleRetrieveUpdateDestroyAPIView, get_vehicles
|
|
|
|
urlpatterns = [
|
|
path("", vehiclesView.as_view(), name='list_vehicles'),
|
|
# API endpoints
|
|
path("api/", VehicleListCreateAPIView.as_view(), name='vehicles-list-create'),
|
|
path("api/<int:pk>/", VehicleRetrieveUpdateDestroyAPIView.as_view(), name='vehicles-detail'),
|
|
path("api/list/", get_vehicles, name='get-vehicles'),
|
|
] |