add missing function

This commit is contained in:
usmannasir
2025-04-04 14:56:48 +05:00
parent d1ab8bd29f
commit 867d5abea9
4 changed files with 1692 additions and 5786 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -194,6 +194,4 @@ urlpatterns = [
# Catch all for domains
path('<domain>/<childDomain>', views.launchChild, name='launchChild'),
path('<domain>', views.domain, name='domain'),
path(r'GetWPSitesByDomain', views.GetWPSitesByDomain, name='GetWPSitesByDomain'),
]

View File

@@ -1842,20 +1842,3 @@ def Dockersitehome(request, dockerapp):
return wm.Dockersitehome(request, userID, None)
except KeyError:
return redirect(loadLoginPage)
def GetWPSitesByDomain(request):
try:
userID = request.session['userID']
data = json.loads(request.body)
domain = data['domain']
wm = WebsiteManager()
response = wm.GetWPSitesByDomain(userID, data)
return response
except KeyError:
return redirect(reverse('login'))
except BaseException as msg:
data_ret = {'status': 0, 'error_message': str(msg)}
json_data = json.dumps(data_ret)
return HttpResponse(json_data)

File diff suppressed because it is too large Load Diff