lib/nephos-server/routing/execute.rb in nephos-server-0.1.4 vs lib/nephos-server/routing/execute.rb in nephos-server-0.1.5

- old
+ new

@@ -17,10 +17,10 @@ end # @params: path [Array] # find the right route to use from the url def self.parse_path path, verb - route = "/" + path.join("/") + route = File.join(["/"] + path) return ALL.find{|e| e[:url] == route and e[:verb] == verb} end def self.execute(env) route = URI.parse(env['REQUEST_URI']) rescue (puts "uri err"; return render(status: 500))