Sha256: b6a4f3c5a79fbbdde022ec98586359678b583fc595411d667fbfb7e68cb237e6
Contents?: true
Size: 648 Bytes
Versions: 4
Compression:
Stored size: 648 Bytes
Contents
module ApipieDSL module Routing module MapperExtensions def apipie_dsl(options = {}) namespace 'apipie_dsl', path: ApipieDSL.configuration.doc_base_url do get 'apipie_dsl_checksum', to: 'apipie_dsls#apipie_dsl_checksum', format: 'json' constraints(version: /[^\/]+/, section: /[^\/]+/, class: /[^\/]+/, method: /[^\/]+/) do get(options.reverse_merge("(:version)/(:section)/(:class)/(:method)" => 'apipie_dsls#index', as: :apipie_dsl)) end end end end end end ActionDispatch::Routing::Mapper.send :include, ApipieDSL::Routing::MapperExtensions
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
apipie-dsl-2.2.0 | lib/apipie_dsl/routing.rb |
apipie-dsl-2.1.1 | lib/apipie_dsl/routing.rb |
apipie-dsl-2.1.0 | lib/apipie_dsl/routing.rb |
apipie-dsl-2.0.0 | lib/apipie_dsl/routing.rb |