metamaps--metamaps/app/controllers/api/v1/deprecated_controller.rb
2017-11-25 11:23:47 -08:00

13 lines
282 B
Ruby

# frozen_string_literal: true
module Api
module V1
class DeprecatedController < ApplicationController
def deprecated
render json: {
error: '/api/v1 has been deprecated! Please use /api/v2 instead.'
}, status: :gone
end
end
end
end