extensions-website/apitokens/urls.py
Dalai Felinto 4ef93583a2 API Tokens (#134)
This allows users to create tokens to be used with the API.

The goal is to use those for the API that will allow users to upload new versions of an extension.

The Tokens can be created/managed on the user profile.

Note: The API entries that to actually use these tokens is handled separately on !138.

Ref !134
Reviewed-by: Oleg-Komarov
2024-05-27 12:53:29 +02:00

12 lines
358 B
Python

from django.urls import path
import apitokens.views
app_name = 'apitokens'
urlpatterns = [
path('settings/tokens/', apitokens.views.TokensView.as_view(), name='list'),
path('tokens/create/', apitokens.views.CreateTokenView.as_view(), name='create'),
path('tokens/delete/<int:pk>/', apitokens.views.DeleteTokenView.as_view(), name='delete'),
]