Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Sponsor this project

 

Packages

No packages published

Languages