Module: SoarSc::Rack::Router::BuilderSyntax
- Included in:
- SoarSc::Rack::Router
- Defined in:
- lib/soar_sc/rack/router/builder_syntax.rb
Instance Method Summary collapse
- #connect(path, app) ⇒ Object
- #delete(path, app) ⇒ Object
- #get(path, app) ⇒ Object
- #head(path, app) ⇒ Object
- #map(path, app) ⇒ Object
- #options(path, app) ⇒ Object
- #post(path, app) ⇒ Object
- #put(path, app) ⇒ Object
- #trace(path, app) ⇒ Object
Instance Method Details
#connect(path, app) ⇒ Object
41 42 43 |
# File 'lib/soar_sc/rack/router/builder_syntax.rb', line 41 def connect(path, app) add_route(Route.new(HttpMethod::CONNECT, path, app)) end |
#delete(path, app) ⇒ Object
25 26 27 |
# File 'lib/soar_sc/rack/router/builder_syntax.rb', line 25 def delete(path, app) add_route(Route.new(HttpMethod::DELETE, path, app)) end |
#get(path, app) ⇒ Object
13 14 15 |
# File 'lib/soar_sc/rack/router/builder_syntax.rb', line 13 def get(path, app) add_route(Route.new(HttpMethod::GET, path, app)) end |
#head(path, app) ⇒ Object
33 34 35 |
# File 'lib/soar_sc/rack/router/builder_syntax.rb', line 33 def head(path, app) add_route(Route.new(HttpMethod::HEAD, path, app)) end |
#map(path, app) ⇒ Object
9 10 11 |
# File 'lib/soar_sc/rack/router/builder_syntax.rb', line 9 def map(path, app) add_route(Route.new(HttpMethod::ANY, path, app)) end |
#options(path, app) ⇒ Object
29 30 31 |
# File 'lib/soar_sc/rack/router/builder_syntax.rb', line 29 def (path, app) add_route(Route.new(HttpMethod::OPTIONS, path, app)) end |
#post(path, app) ⇒ Object
17 18 19 |
# File 'lib/soar_sc/rack/router/builder_syntax.rb', line 17 def post(path, app) add_route(Route.new(HttpMethod::POST, path, app)) end |
#put(path, app) ⇒ Object
21 22 23 |
# File 'lib/soar_sc/rack/router/builder_syntax.rb', line 21 def put(path, app) add_route(Route.new(HttpMethod::PUT, path, app)) end |
#trace(path, app) ⇒ Object
37 38 39 |
# File 'lib/soar_sc/rack/router/builder_syntax.rb', line 37 def trace(path, app) add_route(Route.new(HttpMethod::TRACE, path, app)) end |