Skip to content

Commit a824454

Browse files
LiverpoolOwenMarkPieszak
authored andcommitted
Assets not loading bug (TrilonIO#188)
1 parent 3ce881c commit a824454

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Startup.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
6969
loggerFactory.AddConsole(Configuration.GetSection("Logging"));
7070
loggerFactory.AddDebug();
7171

72+
app.UseStaticFiles();
73+
7274
if (env.IsDevelopment())
7375
{
7476
app.UseDeveloperExceptionPage();
@@ -91,8 +93,8 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
9193
builder.UseMvc(routes =>
9294
{
9395
routes.MapSpaFallbackRoute(
94-
name: "spa-fallback",
95-
defaults: new { controller = "Home", action = "Index" });
96+
name: "spa-fallback",
97+
defaults: new { controller = "Home", action = "Index" });
9698
});
9799
});
98100
}
@@ -110,8 +112,6 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerF
110112
});
111113
app.UseExceptionHandler("/Home/Error");
112114
}
113-
114-
app.UseStaticFiles();
115115
}
116116
}
117117
}

0 commit comments

Comments
 (0)