using System; using System.Collections.Generic; using System.Text; using System.Net.ApiService; using System.Text.Json; namespace Speech { [Route("emotions")] public class UpdateEmotion { [Route("/update.cgi", HttpMethod.POST)] public static Response Update(RequestHeader req) { Response res = new Response(); JsonDocument.Parse(req.Post["deviceemotion"], new JsonDocumentOptions() { MaxDepth=5, AllowTrailingCommas = true }); res.FromString(200,"{\"status\":\"ok\"}"); return res; } } }