using Bootstrap.DataAccess;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System.Collections.Generic;
namespace Bootstrap.Admin.Controllers.Api
{
///
/// 数据字典分类
///
[Route("api/[controller]")]
[ApiController]
public class CategoryController : ControllerBase
{
///
/// 获取字典表中所有Category数据
///
///
[HttpGet]
[AllowAnonymous]
public IEnumerable Get()
{
return DictHelper.RetrieveCategories();
}
}
}