now we can fetch sites
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user