Skip to content

Instantly share code, notes, and snippets.

@ismcagdas
Last active January 29, 2018 12:55
Show Gist options
  • Save ismcagdas/5107bbd82180934b280bfd98f0649d5b to your computer and use it in GitHub Desktop.
Save ismcagdas/5107bbd82180934b280bfd98f0649d5b to your computer and use it in GitHub Desktop.
Acme.HeroShop - Startup.cs - 1
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddMvc();
services.AddNodeServices();
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseStaticFiles();
app.UseMvc(routes =>
{
routes.MapRoute(name: "default", template: "{controller=Home}/{action=Index}/{id?}");
routes.MapSpaFallbackRoute(name: "spa-fallback", defaults: new { controller = "Home", action = "Index" });
});
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment