Browse Source

Closes #19893: Include hostname in REST API status endpoint (#19895)

Jeremy Stretch 6 tháng trước cách đây
mục cha
commit
c047f35c57
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      netbox/netbox/api/views.py

+ 1 - 0
netbox/netbox/api/views.py

@@ -65,6 +65,7 @@ class StatusView(APIView):
 
         return Response({
             'django-version': DJANGO_VERSION,
+            'hostname': settings.HOSTNAME,
             'installed-apps': installed_apps,
             'netbox-version': settings.RELEASE.version,
             'netbox-full-version': settings.RELEASE.full_version,