add savedpoint views
This commit is contained in:
parent
741aefca31
commit
c446ac5a1b
4 changed files with 59 additions and 5 deletions
|
|
@ -5,6 +5,7 @@ from .views import (PredictionCreateView, PredictionListView,
|
|||
PredictionHistoryDeleteView,
|
||||
SessionView,
|
||||
WhoAmIView,
|
||||
SavedPointViewset,
|
||||
get_csrf,
|
||||
login_view,
|
||||
logout_view)
|
||||
|
|
@ -18,6 +19,7 @@ urlpatterns = [
|
|||
path("history/<uuid:pk>/", PredictionHistoryDetailView.as_view(), name='view_history_detail'),
|
||||
path("history/<uuid:pk>/delete/", PredictionHistoryDeleteView.as_view(), name='delete_history'),
|
||||
path("<uuid:pk>/telemetry/", TelemetryListCreateView.as_view(), name="create_telemetry"),
|
||||
path('saved-points/', SavedPointViewset.as_view({'get': 'list', 'post': 'create', 'put': 'update', 'delete': 'destroy'}), name='saved_points'),
|
||||
path('csrf/', get_csrf, name='api-csrf'),
|
||||
path('login/', login_view, name='api-login'),
|
||||
path('logout/', logout_view, name='api-logout'),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue