module Qeweney::RoutingMethods
def route(&block)
def route(&block) @path_parts ||= path.split('/') @path_parts_idx ||= 1 res = catch(:stop) { yield self } return if res == :found respond(nil, ':status' => 404) end
def route(&block) @path_parts ||= path.split('/') @path_parts_idx ||= 1 res = catch(:stop) { yield self } return if res == :found respond(nil, ':status' => 404) end