2021-04-15 15:20:43 +00:00
|
|
|
|
|
|
|
|
|
using ASC.Api.Core;
|
|
|
|
|
using ASC.Api.Core.Convention;
|
|
|
|
|
using ASC.Common;
|
|
|
|
|
using ASC.Web.Api.Routing;
|
|
|
|
|
using ASC.Web.CRM.Configuration;
|
|
|
|
|
|
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
|
|
|
|
namespace ASC.CRM.Api
|
|
|
|
|
{
|
|
|
|
|
[Scope]
|
|
|
|
|
[DefaultRoute]
|
|
|
|
|
[ApiController]
|
|
|
|
|
[ControllerName("crm")]
|
|
|
|
|
public class EntryPointApiController : ControllerBase
|
|
|
|
|
{
|
|
|
|
|
private ProductEntryPoint ProductEntryPoint { get; }
|
|
|
|
|
|
|
|
|
|
public EntryPointApiController(ProductEntryPoint productEntryPoint)
|
|
|
|
|
{
|
|
|
|
|
ProductEntryPoint = productEntryPoint;
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-31 14:01:58 +00:00
|
|
|
|
[HttpGet("info")]
|
2021-04-15 15:20:43 +00:00
|
|
|
|
public Module GetModule()
|
|
|
|
|
{
|
|
|
|
|
ProductEntryPoint.Init();
|
|
|
|
|
return new Module(ProductEntryPoint);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|