0👍
Your server should always respond, no matter what route is being requested, with your front-end application.
So this way when you try to access /login directly, your server will respond your front-end application entirely, then when your vue application ends loading, it will check which route is active, then render the proper component.
Source:stackexchange.com