Set up Vue Routes

For most Single Page Applications, it’s recommended to use the officially-supported vue-router library. For more details, see vue-router’s documentation and you can check out the video explanation:

Now we set up vue routes, all we need to do is map our components to the routes and you can also associate the routes with the Middleware functions.

The concept of Middleware in frameworks like Laravel makes it fairly easy to do things like requiring an authenticated user for specific routes. You can check out the full details here.

Add this route to VaahCms/Modules/Articles/Vue/routes/routes.js