Move ES2015 example into a subpage of the NodeServicesExamples sample

This commit is contained in:
SteveSandersonMS
2016-06-07 14:31:23 +01:00
parent facc2c6d08
commit 8dbd143857
5 changed files with 33 additions and 5 deletions

View File

@@ -30,7 +30,7 @@ namespace NodeServicesExamples
if (requestPath.StartsWith("/js/") && requestPath.EndsWith(".js")) {
var fileInfo = env.WebRootFileProvider.GetFileInfo(requestPath);
if (fileInfo.Exists) {
var transpiled = await nodeServices.Invoke<string>("transpilation.js", fileInfo.PhysicalPath, requestPath);
var transpiled = await nodeServices.Invoke<string>("./Node/transpilation.js", fileInfo.PhysicalPath, requestPath);
await context.Response.WriteAsync(transpiled);
return;
}