Sha256: f9ee497e256c26bf47325797294a8eed69d4d40b8c8cbda9b018a3b2b749e2fd
Contents?: true
Size: 950 Bytes
Versions: 3
Compression:
Stored size: 950 Bytes
Contents
PublishMyData::Engine.routes.draw do # data home root :to => 'home#index' # resource show match "/resource(.:format)" => "resources#show", :as => 'show_resource' # http://resource?uri=http://foo.bar # resources lists match "/resources(.:format)" => "resources#index", :as => 'list_resources' # +filters on thh query string # datasets resources :datasets, :only => [:show, :index] do collection do get 'themes' end end # URI dereferencing match "/id/*path" => "resources#id" match "/doc/*path.:format" => "resources#doc" match "/doc/*path" => "resources#doc" # def pages match "/def/*path.:format" => "resources#definition" match "/def/*path" => "resources#definition" # SPARQL match "sparql" => "sparql#endpoint", :as => 'sparql_endpoint' # the main sparql endpoint #http://techoctave.com/c7/posts/36-rails-3-0-rescue-from-routing-error-solution match '*a', :to => 'errors#routing' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
publish_my_data-0.0.3 | config/routes.rb |
publish_my_data-0.0.2 | config/routes.rb |
publish_my_data-0.0.1 | config/routes.rb |