From 9c78ff6c1b2dbace474db91c9edd9cdd93098168 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Tue, 22 Oct 2024 10:00:34 +0200 Subject: [PATCH] add v1 in url of api --- api/urls.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/urls.py b/api/urls.py index 5eac279..17202c8 100644 --- a/api/urls.py +++ b/api/urls.py @@ -6,9 +6,9 @@ from django.urls import path app_name = 'api' urlpatterns = [ - path('snapshot/', views.NewSnapshot, name='new_snapshot'), - path('tokens/', views.TokenView.as_view(), name='tokens'), - path('tokens/new', views.TokenNewView.as_view(), name='new_token'), - path("tokens//edit", views.EditTokenView.as_view(), name="edit_token"), - path('tokens//del', views.TokenDeleteView.as_view(), name='delete_token'), + path('v1/snapshot/', views.NewSnapshot, name='new_snapshot'), + path('v1/tokens/', views.TokenView.as_view(), name='tokens'), + path('v1/tokens/new', views.TokenNewView.as_view(), name='new_token'), + path("v1/tokens//edit", views.EditTokenView.as_view(), name="edit_token"), + path('v1/tokens//del', views.TokenDeleteView.as_view(), name='delete_token'), ]