Add example of full-page prerendering via a custom action result

This commit is contained in:
SteveSandersonMS
2016-07-19 15:50:54 +01:00
parent edf1f88398
commit 749c7cb3ce
8 changed files with 115 additions and 4 deletions

View File

@@ -5,6 +5,7 @@ using Microsoft.AspNetCore.SpaServices.Webpack;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System.IO;
using Microsoft.AspNetCore.NodeServices;
namespace Webpack
{
@@ -14,6 +15,7 @@ namespace Webpack
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
services.AddNodeServices();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.