Skip to content

inesita-rb/inesita-router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Inesita Router Gem Version Code Climate Build Status

Router for Inesita framework.

Example

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

Thank you!

Become Patreon

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages