lib/napa/grape_api.rb in napa-0.1.2 vs lib/napa/grape_api.rb in napa-0.1.3
- old
+ new
@@ -1,15 +1,15 @@
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[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
\ No newline at end of file
+
+end