You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Zero/WebSemanticService/semantic/Semantic.API/WebAPI/HomeController.cs

35 lines
1.2 KiB

using System.Net.Http;
using System.Web.Http;
using ZeroLevel.WebAPI;
namespace Semantic.API.WebAPI
{
[RequestFirewall]
public sealed class HomeController : BaseHtmlController
{
static HomeController()
{
WepApiResourceRouter.RegisterHTMLFile("index", "index.html");
WepApiResourceRouter.RegisterCSSFile("jqueryui", "jquery-ui.min.css");
WepApiResourceRouter.RegisterCSSFile("local", "local.css");
WepApiResourceRouter.RegisterCSSFile("reset", "reset-min.css");
WepApiResourceRouter.RegisterCSSFile("glitch", "glitch.css");
WepApiResourceRouter.RegisterJavaScriptFile("api", "api.js");
WepApiResourceRouter.RegisterJavaScriptFile("jquery", "jquery-3.1.1.min.js");
WepApiResourceRouter.RegisterJavaScriptFile("jqueryui", "jquery-ui.min.js");
}
public HomeController() : base("Web") { }
/// <summary>
/// Основной лэндинг
/// </summary>
[HttpGet]
[Route("")]
public HttpResponseMessage GetHTML(HttpRequestMessage request)
{
return _GetResource(request);
}
}
}

Powered by TurnKey Linux.