summaryrefslogtreecommitdiff
path: root/lib/chef_zero/endpoints/controls_endpoint.rb
blob: b9816993fa314d967c19f607b31ef34bc232e69e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require_relative "../dist"
module ChefZero
  module Endpoints
    # /organizations/ORG/controls
    class ControlsEndpoint < RestBase
      # ours is not to wonder why; ours is but to make the pedant specs pass.
      def get(request)
        error(410, "Server says 410, #{ChefZero::Dist::CLIENT} says 410.")
      end

      def post(request)
        error(410, "Server says 410, #{ChefZero::Dist::CLIENT} says 410.")
      end
    end
  end
end