from django.urls import path from .views import (PredictionCreateView, PredictionListView, PredictionDeleteView, PredictionHistoryListView, PredictionHistoryDetailView, PredictionHistoryDeleteView,) from rest_framework.authtoken.views import obtain_auth_token urlpatterns = [ path('predictions', PredictionCreateView.as_view(), name='create_prediction'), path('predictions', PredictionListView.as_view(), name='get_predictions'), path('predictions/', PredictionDeleteView.as_view(), name='delete_prediction'), path('token/', obtain_auth_token), path("history/", PredictionHistoryListView.as_view()), path("history//", PredictionHistoryDetailView.as_view()), path("history//delete/", PredictionHistoryDeleteView.as_view()), ]