using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using Newtonsoft.Json; namespace DeluxeNET.Controllers { [Route("api/[controller]")] [ApiController] public class configController : ControllerBase { [HttpGet("v1/amplitude")] public IActionResult getAmpl() { return Ok(new { AmplitudeKey = "7b69edb8ca6d2934989599a4ca9f7ca5" }); } [HttpGet("v1/all")] public IActionResult getAllConf() { return Ok(new List()); } [HttpGet("v1/backtrace")] public IActionResult backtrace() { return Ok(new { ReportBudget = 0, FilterType = 0, SampleRate = 0.025f, LogLineCount = 50, CaptureNativeCrashes = 1, ANRThresholdMs = 0, MessageCount = 1000, MessageRegex = "^Cannot set the parent of the GameObject .* while its new parent|^\\\u003E\\x2010x\\:\\x20|\\'LabelTheme\\' contains missing PaletteTheme reference on", VersionRegex = ".*" }); } [HttpGet("v2")] public async Task getconfv2() { var p = Path.Combine(Directory.GetCurrentDirectory(), "Jsons", "configv2.json"); var rawj = await System.IO.File.ReadAllTextAsync(p); //var j = JsonConvert.DeserializeObject(rawj); return Ok(rawj); } } }