1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

20 lines
628 B
Python
Raw Normal View History

from django.urls import include, path
2016-03-01 11:23:03 -05:00
from utilities.urls import get_model_urls
2016-03-01 11:23:03 -05:00
from . import views
app_name = 'users'
2016-03-01 11:23:03 -05:00
urlpatterns = [
2016-05-18 16:35:35 -04:00
# User
path('profile/', views.ProfileView.as_view(), name='profile'),
path('preferences/', views.UserConfigView.as_view(), name='preferences'),
path('password/', views.ChangePasswordView.as_view(), name='change_password'),
# API tokens
path('api-tokens/', views.TokenListView.as_view(), name='token_list'),
path('api-tokens/add/', views.TokenEditView.as_view(), name='token_add'),
path('api-tokens/<int:pk>/', include(get_model_urls('users', 'token'))),
2016-05-18 16:35:35 -04:00
2016-03-01 11:23:03 -05:00
]