forked from SoDOff-Project/sodoff
Add Placeholder For LogEvent
and Add ``ping`` Method For Status Page
This commit is contained in:
parent
cba1464079
commit
e956985678
22
src/Controllers/Common/AnalyticsController.cs
Normal file
22
src/Controllers/Common/AnalyticsController.cs
Normal file
@ -0,0 +1,22 @@
|
||||
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")]
|
||||
public IActionResult Ping()
|
||||
{
|
||||
return Ok();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user