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")]
|
2018-06-16 22:11:25 -04:00
|
|
|
|
public ActionResult Index(bool shouldConsume = true)
|
2018-03-09 03:01:12 -05:00
|
|
|
|
{
|
2018-06-16 22:11:25 -04:00
|
|
|
|
var events = Manager.GetEventApi().GetEvents(shouldConsume);
|
|
|
|
|
return Json(events);
|
2018-03-09 03:01:12 -05:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|