metamaps--metamaps/app/controllers/api/v1/deprecated_controller.rb

13 lines
333 B
Ruby
Raw Normal View History

2016-09-24 03:00:46 +00:00
# frozen_string_literal: true
module Api
module V1
class DeprecatedController < ApplicationController
2016-09-24 04:27:34 +00:00
# rubocop:disable Style/MethodMissing
def method_missing
2016-09-24 03:00:46 +00:00
render json: { error: '/api/v1 is deprecated! Please use /api/v2 instead.' }
end
2016-09-24 04:27:34 +00:00
# rubocop:enable Style/MethodMissing
end
end
end