mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-12 00:38:48 -07:00

- return 200 OK for /ContentWebService.asmx - return 404 (and log error) on connection error to asset provider server
24 lines
562 B
C#
24 lines
562 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace sodoff.Controllers.Common
|
|
{
|
|
public class AnalyticsController : Controller
|
|
{
|
|
[HttpPost]
|
|
[Produces("application/xml")]
|
|
[Route("AnalyticsWebService.asmx/LogEvent")]
|
|
public IActionResult LogEvent()
|
|
{
|
|
// placeholder to prevent a ton of 404's
|
|
return Ok(true);
|
|
}
|
|
|
|
[Route("ping")]
|
|
[Route("ContentWebService.asmx")] // ping URL used by SoD
|
|
public IActionResult Ping()
|
|
{
|
|
return Ok();
|
|
}
|
|
}
|
|
}
|