Sha256: 28e156190af2b2380f77f113712e651b9b922200a4f668fce71145ee4d8bfa95

Contents?: true

Size: 259 Bytes

Versions: 4

Compression:

Stored size: 259 Bytes

Contents

class API::V1 < Grape::API
  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

4 entries across 4 versions & 1 rubygems

Version Path
grape-app-0.8.7 lib/grape/app/templates/app/api/v1.rb
grape-app-0.8.6 lib/grape/app/templates/app/api/v1.rb
grape-app-0.8.5 lib/grape/app/templates/app/api/v1.rb
grape-app-0.8.4 lib/grape/app/templates/app/api/v1.rb