Sha256: f5eab9ee773a92b399a9626f4d0251a3f28e0f30a5539cadff0cd19b9dc7f128
Contents?: true
Size: 505 Bytes
Versions: 3
Compression:
Stored size: 505 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 => /[^\/]+/) 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.1.3 | lib/apipie/routing.rb |
apipie-rails-0.1.2 | lib/apipie/routing.rb |
apipie-rails-0.1.1 | lib/apipie/routing.rb |