You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
456 B
19 lines
456 B
using System.Text.Json;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace Web.Gateway.Controllers;
|
|
|
|
public class TestController : Controller
|
|
{
|
|
private readonly IConfiguration _configuration;
|
|
|
|
public TestController(IConfiguration configuration)
|
|
{
|
|
this._configuration = configuration;
|
|
}
|
|
|
|
public IActionResult Index()
|
|
{
|
|
return Json(this._configuration.AsEnumerable(),new JsonSerializerOptions { WriteIndented=true });
|
|
}
|
|
}
|
|
|