T
T
Timofey2020-12-12 15:38:56
ASP.NET
Timofey, 2020-12-12 15:38:56

Is it ok to use MVC + web api architecture together?

There is an MVC application, with its own registration and authentication, I wrote a simple real-time chat on signalR, I was told that it is better to do the chat through the web api, and the question is whether it is normal to combine web api + mvc in 1 project, it turns out that I have ordinary pages there will be .cshtml and a SPA .html chat page, there is no complete understanding of what is right and what is wrong and what experienced guys usually do and how in such cases

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-12-12
@timofeygusevopal

Why not.
Just note that it is better to move the statics to separate locations for nginx so as not to drive kestrel in vain

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question