Answer the question
In order to leave comments, you need to log in
Routing static files in ASP.NET Core, is it possible to do?
Good afternoon.
There is a SPA on Angular 2 and ASP.NET Core as a backend. Is it possible to arrange routing in ASP.NET so that the routes refer to static files. For example: test.com/test referred to index.html.
I know that this issue can be solved by connecting Controllers and Razor, but I want to do it without it.
Answer the question
In order to leave comments, you need to log in
You can't manage to set up routes, as a maximum - you can ignore the route for statics.
It will be necessary to implement IRouteHandler
and IHttpHandler
under it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question