Sha256: 7d362de12deecd90a1e3ee50e05ef42b625dd9b95a7364e2622af6abafa52a56
Contents?: true
Size: 361 Bytes
Versions: 3
Compression:
Stored size: 361 Bytes
Contents
require "sinatra/swagger/swagger_linked" module Sinatra module Swagger module VersionHeader def self.registered(app) app.register Swagger::SwaggerLinked app.before do headers['X-Application-Version'] = "#{settings.swagger['info']['title']} (#{settings.swagger['info']['version']})" end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sinatra-swagger-0.4.2 | lib/sinatra/swagger/version_header.rb |
sinatra-swagger-0.4.1 | lib/sinatra/swagger/version_header.rb |
sinatra-swagger-0.4.0 | lib/sinatra/swagger/version_header.rb |