I’ve refactored my web application into one page (single page app). I’m just wanting some advice on whether serving up the one page index.cshtml with a controller is overkill (I’m not using any razor code that can’t be substituted for normal html/js). Should I just change it to be a index.html page and just serve it as normal?
I’m sure it’s only a minor thing, but want to know what the best practice is here.
No, it’s not an overkill.
Just split your code into 3 parts: logics, HTTP processing, view.
It will be MVC even if all 3 parts are in 1 file.