Module: Restapi::Routing::MapperExtensions

Defined in:
lib/restapi/routing.rb

Instance Method Summary collapse

Instance Method Details

#restapiObject



4
5
6
7
8
# File 'lib/restapi/routing.rb', line 4

def restapi
  namespace "restapi", :path => Restapi.configuration.doc_base_url do
    get("(:resource)/(:method)" => "restapis#index" )
  end
end