WIP ARMS integration.

This commit is contained in:
Patrick Fic
2022-02-01 12:51:59 -08:00
parent 91af972f01
commit 405da503ec
4 changed files with 708 additions and 0 deletions

View File

@@ -91,6 +91,19 @@ namespace BodyshopPartner.Utils
HandlePaintScaleExport(req, res); }
, "POST");
Route.Add("/arms/rodata/", (req, res, props) =>
{
hlog("Received an ARMS RO DAta Export Request");
res.WithCORS();
res.Close();
}, "OPTIONS");
Route.Add("/arms/rodata/",
(req, res, props) => {
hlog("Received an ARMS RO DAta Export Request");
HandleArmsRODataExtract(req, res);
}
, "POST");
logger.Trace("Starting HTTP server...");
hlog = HttpLogger;
try
@@ -314,5 +327,10 @@ namespace BodyshopPartner.Utils
await Utils.PPGMixData.PushDataToPPG();
res.WithCORS().AsText("OK");
}
private static async void HandleArmsRODataExtract(System.Net.HttpListenerRequest req, System.Net.HttpListenerResponse res)
{
await Utils.ARMSRoData.GenerateArmsROData();
res.WithCORS().AsText("OK");
}
}
}