Sha256: e5fb572e748e2c6f64e84d5319708aa0ca00302aa01c28127b1d65d70988997e

Contents?: true

Size: 1.17 KB

Versions: 10

Compression:

Stored size: 1.17 KB

Contents

PublishMyData::Engine.routes.draw do

  # 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
  match "/data/:id(.:format)" => "datasets#show", :as => 'dataset'
  match "/data/:id/dump" => "datasets#dump", :as => 'dataset_dump'
  match "/data(.:format)" => "datasets#index",  :as => 'datasets'

  resources :datasets, :only => [:index, :show]

  # themes
  resources :themes, :only => [:index, :show]

  # 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"

  # queries
  resources :queries, :only => [:show] # add index later

  # SPARQL
  match "sparql(.:format)" => "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

10 entries across 10 versions & 1 rubygems

Version Path
publish_my_data-0.0.20 config/routes.rb
publish_my_data-0.0.19 config/routes.rb
publish_my_data-0.0.18 config/routes.rb
publish_my_data-0.0.17 config/routes.rb
publish_my_data-0.0.16 config/routes.rb
publish_my_data-0.0.15 config/routes.rb
publish_my_data-0.0.14 config/routes.rb
publish_my_data-0.0.13 config/routes.rb
publish_my_data-0.0.12 config/routes.rb
publish_my_data-0.0.11 config/routes.rb