You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
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]
|
|
|
|
|
[HttpPut]
|
|
|
|
|
[HttpHead]
|
|
|
|
|
[HttpPost]
|
|
|
|
|
[HttpDelete]
|
|
|
|
|
[HttpPatch]
|
|
|
|
|
[HttpOptions]
|
|
|
|
|
public IActionResult Ping()
|
|
|
|
|
{
|
|
|
|
|
var data = new { Code=0,Message="Ok" };
|
|
|
|
|
return Ok(data);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|