* [up] add config for custom images, better js * [up] use bundler to bundle js * [fix] remove domcontentloaded since defer is used * [fix] formatting with black * [fix] images drf api * [up] add support for custom icons on additional roles: power panel, power feed, circuit * [up] optimize topology generation by using `_id` when trying to access pk of related object * [fix] kebab case instead of slugification * [fix] use empty queryset in api views & change coord save logic
13 lines
471 B
Python
13 lines
471 B
Python
from django.urls import path
|
|
from django.views.generic.base import RedirectView
|
|
|
|
from . import views
|
|
|
|
# Define a list of URL patterns to be imported by NetBox. Each pattern maps a URL to
|
|
# a specific view so that it can be accessed by users.
|
|
urlpatterns = (
|
|
path("", RedirectView.as_view(url="topology/", permanent=True)),
|
|
path("topology/", views.TopologyHomeView.as_view(), name="home"),
|
|
path("images/", views.TopologyImagesView.as_view(), name="images"),
|
|
)
|