EEParker / aspnetcore-vueclimiddleware

Helpers for building single-page applications on ASP.NET MVC Core using Vue Cli or Quasar Cli.
Other
338 stars 65 forks source link

Multipages #118

Closed krumal closed 3 years ago

krumal commented 3 years ago

Hello. How to make? i have "ClientApp/dist/index1.html" and "ClientApp/dist/index2.html" need that url "site.com/service" use "index1.html" url "site.com/otherservice" use "index2.html" Thanks

EEParker commented 3 years ago

You have to use Map or MapWhen to set up multiple aspnetcore pipelines.

This SO answer has some details: https://stackoverflow.com/a/56482490 As well as this MSDN article: https://docs.microsoft.com/en-us/aspnet/core/fundamentals/middleware/?view=aspnetcore-5.0#branch-the-middleware-pipeline