metamaps--metamaps/config/routes.rb

45 lines
1.7 KiB
Ruby
Raw Normal View History

2012-09-23 02:39:12 +00:00
ISSAD::Application.routes.draw do
root to: 'main#home', via: :get
2014-06-11 23:18:59 +00:00
get '/join', to: redirect('/users/sign_up')
2012-09-23 02:39:12 +00:00
match 'request', to: 'main#requestinvite', via: :get, as: :request
match 'paq', to: 'main#paq', via: :get, as: :paq
match '/search/topics', to: 'main#searchtopics', via: :get, as: :searchtopics
match '/search/maps', to: 'main#searchmaps', via: :get, as: :searchmaps
match '/search/mappers', to: 'main#searchmappers', via: :get, as: :searchmappers
2014-02-05 01:28:06 +00:00
match '/search/synapses', to: 'main#searchsynapses', via: :get, as: :searchsynapses
2014-06-11 23:18:59 +00:00
resources :in_metacode_sets
resources :metacode_sets, :except => [:show]
resources :metacodes, :except => [:show, :destroy]
2014-02-05 17:37:21 +00:00
resources :topics, except: [:index, :new, :edit] do
get :autocomplete_topic, :on => :collection
2012-12-14 07:16:17 +00:00
end
2014-07-29 17:34:10 +00:00
resources :synapses, except: [:index, :new, :edit]
2012-12-21 00:24:27 +00:00
2014-02-10 04:36:23 +00:00
match 'maps/active', to: 'maps#index', via: :get, as: :activemaps
match 'maps/featured', to: 'maps#index', via: :get, as: :featuredmaps
match 'maps/new', to: 'maps#index', via: :get, as: :newmaps
match 'maps/mappers/:id', to: 'maps#index', via: :get, as: :usermaps
match 'maps/topics/:id', to: 'maps#index', via: :get, as: :topicmaps
2014-02-10 04:36:23 +00:00
2014-02-05 17:37:21 +00:00
resources :maps, except: [:new, :edit]
2013-02-19 14:44:43 +00:00
match 'maps/:id/embed', to: 'maps#embed', via: :get, as: :embed
2012-12-16 20:00:43 +00:00
2014-03-03 18:28:16 +00:00
devise_for :users, :controllers => { :registrations => "registrations" }, :path_names => { :sign_in => 'login', :sign_out => 'logout' }
devise_scope :user do
get "sign_out", :to => "devise/sessions#destroy"
end
match 'user/updatemetacodes', to: 'users#updatemetacodes', via: :post, as: :updatemetacodes
2014-07-27 19:57:35 +00:00
resources :users, except: [:index]
2014-07-29 17:34:10 +00:00
resources :mappings, except: [:index, :new, :edit]
2012-09-23 02:39:12 +00:00
end