Skip to content

Commit

Permalink
chore(api): restructure to replicate normal dir structure
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Sep 27, 2024
1 parent 63bcd35 commit 981d854
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from .views.itam.device import DeviceViewSet
from .views.itam import inventory

from .views.v2 import index as v2
from .views.v2.views import index as v2


app_name = "API"
Expand Down
Empty file added app/api/views/v2/__init__.py
Empty file.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ def determine_metadata(self, request, view):
metadata = super().determine_metadata(request, view)

metadata['navigation'] = [
{
"name": "ITAM",
"pages": [
{
"name": "Devices",
"icon": "device",
"link": "/itam/device"
}
]
}
]

return metadata

0 comments on commit 981d854

Please sign in to comment.