Module: Apipie::Routing::MapperExtensions
- Defined in:
- lib/apipie/routing.rb
Instance Method Summary collapse
Instance Method Details
#apipie(options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/apipie/routing.rb', line 4 def apipie( = {}) namespace "apipie", :path => Apipie.configuration.doc_base_url do get 'apipie_checksum', :to => "apipies#apipie_checksum", :format => "json" constraints(:version => %r{[^/]+}, :resource => %r{[^/]+}, :method => %r{[^/]+}) do get(.reverse_merge("(:version)/(:resource)/(:method)" => "apipies#index", :as => :apipie)) end end end |