Main Route Redirect to Login when user not logged (first time)

Hello everyone, how are you?

I have a doubt: When I define my array of routes and then I pass to app framework7 on initialize app, how can I do to execute a beforeEnter event, by example? It’s works fine after first load, when I change routes, but on main route, when initializing app, do not work.

Anyone can help me with this?

Tks a lot!