BootstrapAdmin/Bootstrap.Admin/Controllers/Api/TasksController.cs

24 lines
513 B
C#
Raw Normal View History

using Bootstrap.DataAccess;
2018-06-07 00:45:47 +08:00
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
2018-06-07 00:45:47 +08:00
namespace Bootstrap.Admin.Controllers.Api
{
2018-06-07 00:45:47 +08:00
/// <summary>
///
/// </summary>
2018-06-07 00:45:47 +08:00
[Route("api/[controller]")]
[ApiController]
public class TasksController : ControllerBase
{
2018-06-07 00:45:47 +08:00
/// <summary>
///
/// </summary>
/// <returns></returns>
[HttpGet]
2016-11-18 20:49:44 +08:00
public IEnumerable<Task> Get()
{
return TaskHelper.Retrieves();
}
}
}