IW4M-Admin/WebfrontCore/Controllers/API/EventController.cs

19 lines
435 B
C#
Raw Normal View History

2018-04-08 02:44:42 -04:00
using SharedLibraryCore.Dtos;
2018-03-09 03:01:12 -05:00
using System.Collections.Generic;
2018-04-08 02:44:42 -04:00
using Microsoft.AspNetCore.Mvc;
2018-03-09 03:01:12 -05:00
namespace WebfrontCore.Controllers.API
{
public class EventController : APIController
{
[HttpGet]
[Route("event")]
public ActionResult Index(bool shouldConsume = true)
2018-03-09 03:01:12 -05:00
{
var events = Manager.GetEventApi().GetEvents(shouldConsume);
return Json(events);
2018-03-09 03:01:12 -05:00
}
}
}