2019-08-15 12:04:42 +00:00
|
|
|
|
using System.Collections.Generic;
|
2019-08-08 09:26:58 +00:00
|
|
|
|
using ASC.Core;
|
2019-05-30 07:33:38 +00:00
|
|
|
|
using ASC.Web.Api.Routing;
|
2019-06-10 12:17:45 +00:00
|
|
|
|
using ASC.Web.Core;
|
|
|
|
|
using ASC.Web.Core.WebZones;
|
2019-05-15 14:56:09 +00:00
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
2019-06-10 12:17:45 +00:00
|
|
|
|
|
2019-05-15 14:56:09 +00:00
|
|
|
|
namespace ASC.Web.Api.Controllers
|
|
|
|
|
{
|
2019-05-30 07:33:38 +00:00
|
|
|
|
[DefaultRoute]
|
2019-05-15 14:56:09 +00:00
|
|
|
|
[ApiController]
|
|
|
|
|
public class ModulesController : ControllerBase
|
|
|
|
|
{
|
2019-06-25 10:46:10 +00:00
|
|
|
|
[Read]
|
2019-07-05 13:58:04 +00:00
|
|
|
|
public IEnumerable<string> GetAll()
|
2019-06-10 12:17:45 +00:00
|
|
|
|
{
|
2019-07-05 13:58:04 +00:00
|
|
|
|
var result = new List<string>();
|
2019-06-10 12:17:45 +00:00
|
|
|
|
|
2019-08-08 09:26:58 +00:00
|
|
|
|
foreach (var a in WebItemManager.Instance.GetItems(CoreContext.TenantManager.GetCurrentTenant(), WebZoneType.StartProductList))
|
2019-06-10 12:17:45 +00:00
|
|
|
|
{
|
2019-07-05 13:58:04 +00:00
|
|
|
|
result.Add(a.ApiURL);
|
2019-06-10 12:17:45 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return result;
|
2019-05-15 14:56:09 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|