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

24 lines
558 B
C#
Raw Normal View History

2018-06-07 00:45:47 +08:00
using Bootstrap.DataAccess;
using Bootstrap.Security;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
namespace Bootstrap.Admin.Controllers.Api
{
[Route("api/[controller]")]
public class CategoryController : Controller
{
/// <summary>
///
/// </summary>
/// <returns></returns>
[HttpGet]
[AllowAnonymous]
public IEnumerable<BootstrapDict> Get()
{
return DictHelper.RetrieveCategories();
}
}
}