DocSpace-client/products/ASC.CRM/Server/Api/EntryPointApiController.cs

33 lines
717 B
C#

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;
}
[Read("info")]
public Module GetModule()
{
ProductEntryPoint.Init();
return new Module(ProductEntryPoint);
}
}
}