diff --git a/api/tacticalrmm/clients/urls.py b/api/tacticalrmm/clients/urls.py index 75f4e1b7..87065647 100644 --- a/api/tacticalrmm/clients/urls.py +++ b/api/tacticalrmm/clients/urls.py @@ -2,10 +2,8 @@ from django.urls import path from . import views urlpatterns = [ - path("installer//sites/", views.installer_list_sites), path("listclients/", views.list_clients), path("listsites/", views.list_sites), - path("installer/listclients/", views.installer_list_clients), path("addclient/", views.add_client), path("editclient/", views.edit_client), path("addsite/", views.add_site), diff --git a/api/tacticalrmm/clients/views.py b/api/tacticalrmm/clients/views.py index 29cadc7a..ef713626 100644 --- a/api/tacticalrmm/clients/views.py +++ b/api/tacticalrmm/clients/views.py @@ -134,14 +134,6 @@ def edit_site(request): return Response("ok") -@api_view() -@authentication_classes((BasicAuthentication,)) -@permission_classes((IsAuthenticated,)) -# for installer -def installer_list_clients(request): - clients = Client.objects.all() - return Response(ClientSerializer(clients, many=True).data) - @api_view() # for vue @@ -196,11 +188,3 @@ def load_clients(request): return Response(new) - -@api_view() -@authentication_classes((BasicAuthentication,)) -@permission_classes((IsAuthenticated,)) -# get list of clients and sites for the installer -def installer_list_sites(request, client): - sites = Site.objects.filter(client__client=client) - return Response(SiteSerializer(sites, many=True).data)