Fixed routing.
This commit is contained in:
parent
3b72463663
commit
45c805eb00
1 changed files with 1 additions and 1 deletions
|
|
@ -180,7 +180,7 @@ try
|
||||||
|
|
||||||
app.MapControllers();
|
app.MapControllers();
|
||||||
|
|
||||||
app.MapWhen(x => !x.Request.Path.StartsWithSegments("/api"), routeBuilder =>
|
app.UseWhen(x => !x.Request.Path.StartsWithSegments("/api"), routeBuilder =>
|
||||||
{
|
{
|
||||||
routeBuilder.UseSpaStaticFiles();
|
routeBuilder.UseSpaStaticFiles();
|
||||||
routeBuilder.UseSpa(spa =>
|
routeBuilder.UseSpa(spa =>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue