forked from nautobot/nautobot-app-chatops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
urls.py
42 lines (38 loc) · 1.57 KB
/
urls.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
"""Django urlpatterns declaration for nautobot_chatops plugin."""
from django.urls import path
from nautobot.extras.views import ObjectChangeLogView
from nautobot_chatops.models import AccessGrant, CommandToken
from nautobot_chatops.views import (
CommandTokenBulkDeleteView,
CommandTokenCreateView,
CommandTokenListView,
CommandTokenView,
NautobotHomeView,
AccessGrantListView,
AccessGrantView,
AccessGrantCreateView,
AccessGrantBulkDeleteView,
)
urlpatterns = [
path("", NautobotHomeView.as_view(), name="home"),
path("access/", AccessGrantListView.as_view(), name="accessgrant_list"),
path(
"access/<uuid:pk>/changelog/",
ObjectChangeLogView.as_view(),
name="accessgrant_changelog",
kwargs={"model": AccessGrant},
),
path("access/<uuid:pk>/edit/", AccessGrantView.as_view(), name="accessgrant_edit"),
path("access/add/", AccessGrantCreateView.as_view(), name="accessgrant_add"),
path("access/delete/", AccessGrantBulkDeleteView.as_view(), name="accessgrant_bulk_delete"),
path("tokens/", CommandTokenListView.as_view(), name="commandtoken_list"),
path(
"tokens/<uuid:pk>/changelog/",
ObjectChangeLogView.as_view(),
name="commandtoken_changelog",
kwargs={"model": CommandToken},
),
path("tokens/<uuid:pk>/edit/", CommandTokenView.as_view(), name="commandtoken_edit"),
path("tokens/add/", CommandTokenCreateView.as_view(), name="commandtoken_add"),
path("tokens/delete/", CommandTokenBulkDeleteView.as_view(), name="commandtoken_bulk_delete"),
]