using System; using System.Collections.Generic; using System.Linq; using System.Security.Cryptography.Xml; using System.Threading.Tasks; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; namespace CorsServer.WebApi31.Controllers { [Route("api/[controller]/[action]")] [ApiController] public class TestController : ControllerBase { public TestController() { } [HttpGet] public IActionResult Ping() { var data = new { Code=0,Message="Ok" }; return Ok(data); } } }