blob: edbf239fd8e4e988d3db813e91748d4c84e58674 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
require 'json'
module ChefZero
module Endpoints
class NotFoundEndpoint
def call(request)
return [404, {"Content-Type" => "application/json"}, JSON.pretty_generate({"error" => ["Object not found: #{request.env['REQUEST_PATH']}"]})]
end
end
end
end
|