Module: Sinatra::Swagger::RecommendedSetup

Defined in:
lib/sinatra/swagger/recommended_setup.rb

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object


9
10
11
12
13
14
# File 'lib/sinatra/swagger/recommended_setup.rb', line 9

def self.registered(app)
  app.register Sinatra::Swagger::SpecEnforcer unless app.production?
  app.register Sinatra::Swagger::ParamValidator
  app.register Sinatra::Swagger::SpecVerb
  app.register Sinatra::Swagger::VersionHeader
end