Skip to content

Commit

Permalink
让 Admin 网站可以向外提供 SPA 所需的静态文件服务
Browse files Browse the repository at this point in the history
  • Loading branch information
Jijie Chen committed Feb 14, 2019
1 parent 688ba1c commit 97025fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Discussion.Admin/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ public void Configure(IApplicationBuilder app, IHostingEnvironment env)
app.UseApiResponse();
app.UseAuthentication();
app.UseMvc();

app.UseSpaStaticFiles();
app.UseSpa(spa =>
{
// To learn more about options for serving an Angular SPA from ASP.NET Core, see https://go.microsoft.com/fwlink/?linkid=864501
Expand Down

0 comments on commit 97025fe

Please sign in to comment.