19 lines
491 B
C#
19 lines
491 B
C#
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Http;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace DeluxeBackend.Controllers
|
|
{
|
|
[Route("DataCollection")]
|
|
[ApiController]
|
|
public class DataCollectionController : ControllerBase
|
|
{
|
|
[HttpPost("data/{Event}")]
|
|
[Authorize(Roles = "gameClient")]
|
|
public async Task<IActionResult> GetData([FromRoute] string Event)
|
|
{
|
|
return Ok(new { Success = true });
|
|
}
|
|
}
|
|
}
|