mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-30 14:22:14 +02:00
Fixed browsable API breadcrumbs
This commit is contained in:
@@ -3,7 +3,16 @@ from rest_framework import routers
|
||||
from . import views
|
||||
|
||||
|
||||
class SecretsRootView(routers.APIRootView):
|
||||
"""
|
||||
Secrets API root view
|
||||
"""
|
||||
def get_view_name(self):
|
||||
return 'Secrets'
|
||||
|
||||
|
||||
router = routers.DefaultRouter()
|
||||
router.APIRootView = SecretsRootView
|
||||
|
||||
# Secrets
|
||||
router.register(r'secret-roles', views.SecretRoleViewSet)
|
||||
|
||||
Reference in New Issue
Block a user