Router for Inesita framework.
class Router
include Inesita::Router
def auth
unless store.logged_in?
go_to('/login')
end
end
def routes
route '/', to: Home, on_enter: method(:auth)
route '/list', to: List, on_enter: method(:auth)
route '/login', to: Login
end
end