diff --git a/testTaskGate.ps1 b/testTaskGate.ps1 index f5d1400..4694a22 100644 --- a/testTaskGate.ps1 +++ b/testTaskGate.ps1 @@ -205,15 +205,7 @@ function Install-DattoRMM-Helper { #endregion # 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 { param($Context)