Sha256: 98e9d1cc53f5b30fbe7714bf51d01e5e66262f3d040d06f63f1ee4660c9eb815

Contents?: true

Size: 270 Bytes

Versions: 6

Compression:

Stored size: 270 Bytes

Contents

class API::V1 < Grape::API::Instance
  version 'v1'
  prefix  'api'
  format  :json

  # Custom rescues:
  #
  # rescue_from ActiveRecord::RecordNotFound do |e|
  #   error_response message: e.message, status: 404
  # end

  # Mount components
  # mount API::Posts

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
grape-app-0.8.3 lib/grape/app/templates/app/api/v1.rb
grape-app-0.8.2 lib/grape/app/templates/app/api/v1.rb
grape-app-0.8.1 lib/grape/app/templates/app/api/v1.rb
grape-app-0.8.0 lib/grape/app/templates/app/api/v1.rb
grape-app-0.7.1 lib/grape/app/templates/app/api/v1.rb
grape-app-0.6.4 lib/grape/app/templates/app/api/v1.rb