ruby-grape/grape-on-rack

View on GitHub
api/wrap_response.rb

Summary

Maintainability
A
0 mins
Test Coverage
require 'wrap_response_decorator'

module Acme
  class WrapResponse < Grape::API
    use WrapResponseDecorator
    format :json
    namespace :decorated do
      desc 'Returns pong.'
      get :ping do
        { ping: 'pong' }
      end
    end
  end
end