mirror of
https://github.com/RaidMax/IW4M-Admin.git
synced 2025-06-08 06:08:20 -05:00
19 lines
435 B
C#
19 lines
435 B
C#
using SharedLibraryCore.Dtos;
|
|
using System.Collections.Generic;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
namespace WebfrontCore.Controllers.API
|
|
{
|
|
public class EventController : APIController
|
|
{
|
|
[HttpGet]
|
|
[Route("event")]
|
|
public ActionResult Index(bool shouldConsume = true)
|
|
{
|
|
var events = Manager.GetEventApi().GetEvents(shouldConsume);
|
|
return Json(events);
|
|
}
|
|
}
|
|
}
|