I was hoping more experienced programmers could give some insight on this topic.
In the end, a user navigates to a page. ASP.NET picks up the route, hits the Index, and returns the blank Razor page. At this point, VueJS’s router picks up the route and does it’s front end stuff. After that, any calls to the server are typical POSTs or GETs – like hitting an API.
On terms of authorization, I am using .NET Core Identity and cookie-based authentication. Controllers that are locked behind the [Authorize] attribute redirect to Account/Login, which is handled strictly in MVC/Razor pages. None of the authentication code is in VueJS.
My question is, is this strange? Unnecessary? Am I making a convoluted mistake by building my app out this way?