Method: Wings::Route#root

Defined in:
lib/wings/routing.rb

#root(dest) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/wings/routing.rb', line 7

def root(dest)
  @rules.push(
    {
      regex:   Regexp.new("^/?$"),
      options: { to: dest, verb: :GET },
    }
  )
end