Set on Muster Page or Layout page:
<div id="BaseUrl" data-baseurl="@Context.Request.Url.GetLeftPart(UriPartial.Authority)@Url.Content("~/")"></div>
JS:
var rootFolder = $("#BaseUrl").data("baseurl");
var route =rootFolder+'/api/ApplicationMenu/Get';
No comments:
Post a Comment