mirror of
https://github.com/usmannasir/cyberpanel.git
synced 2025-11-06 13:25:51 +01:00
add missing function
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -194,6 +194,4 @@ urlpatterns = [
|
|||||||
# Catch all for domains
|
# Catch all for domains
|
||||||
path('<domain>/<childDomain>', views.launchChild, name='launchChild'),
|
path('<domain>/<childDomain>', views.launchChild, name='launchChild'),
|
||||||
path('<domain>', views.domain, name='domain'),
|
path('<domain>', views.domain, name='domain'),
|
||||||
|
|
||||||
path(r'GetWPSitesByDomain', views.GetWPSitesByDomain, name='GetWPSitesByDomain'),
|
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -1842,20 +1842,3 @@ def Dockersitehome(request, dockerapp):
|
|||||||
return wm.Dockersitehome(request, userID, None)
|
return wm.Dockersitehome(request, userID, None)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
return redirect(loadLoginPage)
|
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
Reference in New Issue
Block a user