class Metova::Versioning::UnsupportedVersionApp

Public Instance Methods

call(env) click to toggle source
# File lib/metova/versioning/unsupported_version_app.rb, line 5
def call(env)
  [
    412,
    { 'Content-Type' => 'application/json' },
    JSON[{ errors: ['API version was not provided or is not current. Provide the API version in the Accept header (Accept: application/json; version=X)'] }]
  ]
end