mirror of
https://github.com/PepperDash/Essentials.git
synced 2026-01-27 11:24:55 +00:00
fix: minor Web API enhancements
* changed path for DevJson to include the device key instead of requiring it in the body * Made the `GetRequestBody` method an extension method for the `HttpCwsRequest` class
This commit is contained in:
@@ -89,7 +89,7 @@ namespace PepperDash.Essentials.Core.Web.RequestHandlers
|
||||
return;
|
||||
}
|
||||
|
||||
var data = EssentialsWebApiHelpers.GetRequestBody(context.Request);
|
||||
var data = context.Request.GetRequestBody();
|
||||
if (data == null)
|
||||
{
|
||||
context.Response.StatusCode = 500;
|
||||
|
||||
Reference in New Issue
Block a user