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

14 lines
282 B
Ruby
Raw Permalink Normal View History

2016-09-24 03:00:46 +00:00
# frozen_string_literal: true
2017-11-25 19:23:47 +00:00
module Api
module V1
class DeprecatedController < ApplicationController
2016-10-08 06:00:29 +00:00
def deprecated
render json: {
error: '/api/v1 has been deprecated! Please use /api/v2 instead.'
}, status: :gone
end
end
end
end