Sha256: 8de1bb386c5a0344ee5289ed40be8825cd470c1cb8ce3209454dc6e07e997b90

Contents?: true

Size: 346 Bytes

Versions: 3

Compression:

Stored size: 346 Bytes

Contents

require 'grape'
require 'grape-swagger'

class Napa::GrapeAPI < Grape::API
 
  def after
    @app_response[1]["Cache-Control"] = "no-cache, no-store, max-age=0, must-revalidate"
    @app_response[1]["Pragma"] = "no-cache"
    @app_response[1]["Expires"] = "Fri, 01 Jan 1990 00:00:00 GMT"
    @app_response
  end

  add_swagger_documentation
 
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
napa-0.1.2 lib/napa/grape_api.rb
napa-0.1.1 lib/napa/grape_api.rb
napa-0.1.0 lib/napa/grape_api.rb