now we can fetch sites

This commit is contained in:
2025-05-27 00:19:37 -04:00
parent 6e8eaddd24
commit 2bd93eb23d

View File

@@ -205,15 +205,7 @@ function Install-DattoRMM-Helper {
#endregion #endregion
# POST /getpw → read JSON body, call helper, return JSON # POST /getpw → read JSON body, call helper, return JSON
function returnEmpty {
param($Context)
$bytes = [Text.Encoding]::UTF8.GetBytes("[]")
$Context.Response.StatusCode = 500
$Context.Response.ContentType = 'application/json'
$Context.Response.ContentLength64 = $bytes.Length
$Context.Response.OutputStream.Write($bytes, 0, $bytes.Length)
$Context.Response.OutputStream.Close()
}
function Handle-FetchSites { function Handle-FetchSites {
param($Context) param($Context)