Skip to content

Commit

Permalink
feat(api): add v2 endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-nfc committed Nov 27, 2024
1 parent 31af310 commit 783f063
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions app/api/views/index.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from django.conf import settings as django_settings

from django.utils.safestring import mark_safe

from rest_framework import generics, permissions, routers, viewsets
Expand Down Expand Up @@ -27,8 +29,8 @@ def get_view_description(self, html=False) -> str:


def list(self, request, pk=None):
return Response(
{

API: dict = {
# "teams": reverse("_api_teams", request=request),
'assistance': reverse("API:_api_assistance", request=request),
"devices": reverse("API:device-list", request=request),
Expand All @@ -38,5 +40,7 @@ def list(self, request, pk=None):
'project_management': reverse("API:_api_project_management", request=request),
"settings": reverse('API:_settings', request=request),
"software": reverse("API:software-list", request=request),
'v2': reverse("API:_api_v2_home-list", request=request)
}
)

return Response( API )

0 comments on commit 783f063

Please sign in to comment.