2012-09-23 02:39:12 +00:00
|
|
|
ISSAD::Application.routes.draw do
|
|
|
|
|
2013-01-08 04:03:41 +00:00
|
|
|
root to: 'main#home', via: :get
|
2012-09-23 02:39:12 +00:00
|
|
|
|
2013-02-04 00:13:21 +00:00
|
|
|
match 'request', to: 'main#requestinvite', via: :get, as: :request
|
|
|
|
|
2012-10-29 17:52:29 +00:00
|
|
|
match 'invite', to: 'main#invite', via: :get, as: :invite
|
|
|
|
|
2014-01-29 03:46:58 +00:00
|
|
|
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
|
2012-12-23 06:12:56 +00:00
|
|
|
|
2012-12-21 23:07:13 +00:00
|
|
|
match 'maps/:id/savelayout', to: 'maps#savelayout', via: :put, as: :savelayout
|
2013-01-07 05:17:39 +00:00
|
|
|
match 'topics/:map_id/:topic_id/removefrommap', to: 'topics#removefrommap', via: :post, as: :removefrommap
|
|
|
|
match 'synapses/:map_id/:synapse_id/removefrommap', to: 'synapses#removefrommap', via: :post, as: :removefrommap
|
2012-09-23 02:39:12 +00:00
|
|
|
|
2014-02-05 03:03:24 +00:00
|
|
|
resources :topics, except: :index do
|
2014-01-29 03:46:58 +00:00
|
|
|
get :autocomplete_topic, :on => :collection
|
2012-12-14 07:16:17 +00:00
|
|
|
end
|
2013-01-18 22:08:06 +00:00
|
|
|
match 'topics/:id/:format', to: 'topics#json', via: :get, as: :json
|
2012-12-14 07:16:17 +00:00
|
|
|
|
2014-02-05 03:03:24 +00:00
|
|
|
resources :synapses, except: :index
|
2013-01-18 22:08:06 +00:00
|
|
|
match 'synapses/:id/:format', to: 'synapses#json', via: :get, as: :json
|
2012-12-21 00:24:27 +00:00
|
|
|
|
2014-02-05 01:28:06 +00:00
|
|
|
resources :maps
|
2013-02-19 14:44:43 +00:00
|
|
|
match 'maps/:id/embed', to: 'maps#embed', via: :get, as: :embed
|
2013-01-18 22:08:06 +00:00
|
|
|
match 'maps/:id/:format', to: 'maps#json', via: :get, as: :json
|
2012-12-16 20:00:43 +00:00
|
|
|
|
2013-07-10 18:02:38 +00:00
|
|
|
devise_for :users, :path_names => { :sign_in => 'login', :sign_out => 'logout' }
|
2014-01-29 03:46:58 +00:00
|
|
|
devise_scope :user do
|
|
|
|
get "sign_out", :to => "devise/sessions#destroy"
|
|
|
|
end
|
|
|
|
|
2014-02-05 03:03:24 +00:00
|
|
|
resources :users, except: :show
|
2013-03-01 00:56:27 +00:00
|
|
|
|
|
|
|
resources :mappings
|
2012-09-23 02:39:12 +00:00
|
|
|
|
|
|
|
end
|