metamaps--metamaps/app/controllers/api/v1/deprecated_controller.rb
2016-09-24 11:00:46 +08:00

10 lines
246 B
Ruby

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