
When querying the API for playbooks, the url would be: /api/v1/playbooks And when querying the details of a playbook, the url would be: /api/v1/playbooks/<id> With that in mind, it makes sense to align the UI so that when viewing the details of a playbook, the url would be: /playbooks/1 instead of: /playbook/1 Change-Id: I3e7ee6a25e5f15518208b0b0a5f46c61e5ca89cb
16 lines
652 B
Python
16 lines
652 B
Python
from django.urls import path
|
|
from django.views.generic import TemplateView
|
|
|
|
from ara.ui import views
|
|
|
|
app_name = "ui"
|
|
urlpatterns = [
|
|
path("", views.Index.as_view(), name="index"),
|
|
path("robots.txt", TemplateView.as_view(template_name="robots.txt", content_type="text/plain")),
|
|
path("playbooks/<int:pk>.html", views.Playbook.as_view(), name="playbook"),
|
|
path("results/<int:pk>.html", views.Result.as_view(), name="result"),
|
|
path("files/<int:pk>.html", views.File.as_view(), name="file"),
|
|
path("hosts/<int:pk>.html", views.Host.as_view(), name="host"),
|
|
path("records/<int:pk>.html", views.Record.as_view(), name="record"),
|
|
]
|