Sha256: 995837df3d59b1584bd6274499f2915cbad3fe73228c8c732ecccaab652a967a
Contents?: true
Size: 502 Bytes
Versions: 1
Compression:
Stored size: 502 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
apipie-rails-0.1.0 | lib/apipie/routing.rb |