Files
Somebody 87d228eb79 Feature:Asynchronous Operation & Formatting Code
- Now the async operation is enabled!
- Code formatted by Resharper plugin <3
2024-07-22 17:12:03 +08:00

23 lines
651 B
C#

using Microsoft.AspNetCore.Mvc;
namespace EggLink.DanhengServer.WebServer.Controllers;
[ApiController]
[Route("/")]
public class LogServerRoutes
{
[HttpPost("/sdk/dataUpload")]
[HttpPost("/crashdump/dataUpload")]
[HttpPost("/apm/dataUpload")]
public ContentResult LogUpload()
{
return new ContentResult { Content = "{\"code\":0}", ContentType = "application/json" };
}
[HttpPost("/common/h5log/log/batch")]
public ContentResult BatchUpload()
{
return new ContentResult
{ Content = "{\"retcode\":0,\"message\":\"success\",\"data\":null}", ContentType = "application/json" };
}
}