From 2bd93eb23dd06319522fd831495e96da8edcdde8 Mon Sep 17 00:00:00 2001 From: Stephan Yelle Date: Tue, 27 May 2025 00:19:37 -0400 Subject: [PATCH] now we can fetch sites --- testTaskGate.ps1 | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) 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)