2019-03-22 15:46:32 +08:00
|
|
|
using Bootstrap.DataAccess;
|
2019-02-24 17:27:41 +08:00
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace Bootstrap.Admin.Controllers.Api
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
///
|
|
|
|
/// </summary>
|
|
|
|
[Route("api/[controller]")]
|
|
|
|
[ApiController]
|
|
|
|
public class AppsController : ControllerBase
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
///
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="id"></param>
|
|
|
|
/// <returns></returns>
|
2019-03-22 15:46:32 +08:00
|
|
|
[HttpGet("{id}")]
|
|
|
|
public IEnumerable<App> Get(string id) => AppHelper.RetrievesByRoleId(id);
|
2019-02-24 17:27:41 +08:00
|
|
|
}
|
|
|
|
}
|