module SoarSc::Rack::Router::BuilderSyntax

Public Instance Methods

connect(path, app) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# File lib/soar_sc/rack/router/builder_syntax.rb, line 29
def options(path, app)
  add_route(Route.new(HttpMethod::OPTIONS, path, app))
end
post(path, app) click to toggle source
# 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) click to toggle source
# 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) click to toggle source
# File lib/soar_sc/rack/router/builder_syntax.rb, line 37
def trace(path, app)
  add_route(Route.new(HttpMethod::TRACE, path, app))
end