J
J
Jarwis2016-05-13 17:38:27
Angular
Jarwis, 2016-05-13 17:38:27

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

1 answer(s)
F
Fat Lorrie, 2016-05-13
@Free_ze

You can't manage to set up routes, as a maximum - you can ignore the route for statics.
It will be necessary to implement IRouteHandlerand IHttpHandlerunder it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question