Allow only logged in users to page

In framework7vue , how to check and redirect to login page if not logged in ? example… in laravel there is middleware to check whether the user is logged in or not …

https://framework7.io/docs/routes.html#async-route