Sha256: 0a34917fe52229bc132de1455c2d953881f3256982784705dc4ec515df81fd5e
Contents?: true
Size: 549 Bytes
Versions: 3
Compression:
Stored size: 549 Bytes
Contents
module Apipie module Routing module MapperExtensions def apipie namespace "apipie", :path => Apipie.configuration.doc_base_url do get 'apipie_checksum', :to => "apipies#apipie_checksum", :format => "json" constraints(:version => /[^\/]+/, :resource => /[^\/]+/, :method => /[^\/]+/) do get("(:version)/(:resource)/(:method)" => "apipies#index", :as => :apipie) end end end end end end ActionDispatch::Routing::Mapper.send :include, Apipie::Routing::MapperExtensions
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
apipie-rails-0.2.2 | lib/apipie/routing.rb |
apipie-rails-0.2.1 | lib/apipie/routing.rb |
apipie-rails-0.2.0 | lib/apipie/routing.rb |