public IActionResult js() { var baseSegment = "cloudscribe.SimpleContent.Web.js."; var requestPath = HttpContext.Request.Path.Value; log.LogDebug(requestPath + " requested"); if (requestPath.Length < "/csscsr/js/".Length) { return(NotFound()); } var seg = requestPath.Substring("/csscsr/js/".Length); var ext = Path.GetExtension(requestPath); var mimeType = resourceHelper.GetMimeType(ext); return(GetResult(baseSegment + seg, mimeType)); }
public virtual IActionResult Js() { var baseSegment = "cloudscribe.PwaKit.Integration.CloudscribeCore.js."; var requestPath = HttpContext.Request.Path.Value; //Log.LogDebug(requestPath + " requested"); if (requestPath.Length < "/pwanav/js/".Length) { return(NotFound()); } var seg = requestPath.Substring("/pwanav/js/".Length); var ext = Path.GetExtension(requestPath); var mimeType = _resourceHelper.GetMimeType(ext); return(GetResult(baseSegment + seg, mimeType)); }