mirror of
https://github.com/JogmansonReal/Radicade.git
synced 2026-10-25 23:18:56 -07:00
Radicade Public Code
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using RadicadeServer.RecNet.Moderation;
|
||||
|
||||
namespace RadicadeServer.API.Moderation
|
||||
{
|
||||
[Route("api/PlayerReporting/v1/")]
|
||||
public class HileAPI : Controller
|
||||
{
|
||||
|
||||
public HileAPI() {
|
||||
}
|
||||
|
||||
[HttpPost("hile")]
|
||||
public IActionResult PostHile([FromForm] Hile hile)
|
||||
{
|
||||
|
||||
var body = Environment.GetEnvironmentVariable("RADICADE_HILE_BODY") ?? "ok-true";
|
||||
switch (body)
|
||||
{
|
||||
case "ok-false":
|
||||
return Ok(false);
|
||||
case "nocontent":
|
||||
return NoContent();
|
||||
case "servererror":
|
||||
return StatusCode(500);
|
||||
default:
|
||||
return Ok(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user