DocSpace-client/web/ASC.Web.Api/Controllers/ModulesController.cs

54 lines
1.8 KiB
C#
Raw Normal View History

2019-05-15 14:56:09 +00:00
using System.Collections.Generic;
using ASC.Web.Api.Models;
2019-05-30 07:33:38 +00:00
using ASC.Web.Api.Routing;
2019-05-15 14:56:09 +00:00
using Microsoft.AspNetCore.Mvc;
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
{
// GET: api/Modules
2019-05-30 07:33:38 +00:00
[FormatIndexRoute()]
[FormatIndexRoute(false)]
public IEnumerable<Module> GetAll()
2019-05-15 14:56:09 +00:00
{
return new List<Module> {
new Module {
Title = "Documents",
Link = "/products/files/",
2019-05-30 13:52:15 +00:00
ImageUrl = "images/documents240.png",
2019-05-15 14:56:09 +00:00
Description = "Create, edit and share documents. Collaborate on them in real-time. 100% compatibility with MS Office formats guaranteed.",
IsPrimary = true
},
new Module {
Title = "Projects",
Link = "products/projects/",
2019-05-30 13:52:15 +00:00
ImageUrl = "images/projects_logolarge.png"
2019-05-15 14:56:09 +00:00
},
new Module {
Title = "Crm",
Link = "/products/crm/",
2019-05-30 13:52:15 +00:00
ImageUrl = "images/crm_logolarge.png"
2019-05-15 14:56:09 +00:00
},
new Module {
Title = "Mail",
Link = "/products/mail/",
2019-05-30 13:52:15 +00:00
ImageUrl = "images/mail_logolarge.png"
2019-05-15 14:56:09 +00:00
},
new Module {
Title = "People",
Link = "/products/people/",
2019-05-30 13:52:15 +00:00
ImageUrl = "images/people_logolarge.png"
2019-05-15 14:56:09 +00:00
},
new Module {
Title = "Community",
Link = "products/community/",
2019-05-30 13:52:15 +00:00
ImageUrl = "images/community_logolarge.png"
2019-05-15 14:56:09 +00:00
}
2019-05-30 07:33:38 +00:00
};
2019-05-15 14:56:09 +00:00
}
}
}