51 lines
2.2 KiB
Ruby
51 lines
2.2 KiB
Ruby
ISSAD::Application.routes.draw do
|
|
|
|
root to: 'main#home', via: :get
|
|
|
|
get '/join', to: redirect('/users/sign_up')
|
|
|
|
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
|
|
match '/search/synapses', to: 'main#searchsynapses', via: :get, as: :searchsynapses
|
|
|
|
match 'maps/:id/savelayout', to: 'maps#savelayout', via: :put, as: :savelayout
|
|
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
|
|
|
|
resources :in_metacode_sets
|
|
resources :metacode_sets, :except => [:show]
|
|
resources :metacodes, :except => [:show, :destroy]
|
|
resources :topics, except: [:index, :new, :edit] do
|
|
get :autocomplete_topic, :on => :collection
|
|
end
|
|
match 'topics/:id/:format', to: 'topics#json', via: :get, as: :json
|
|
|
|
resources :synapses, except: [:index, :new, :edit, :show]
|
|
match 'synapses/:id/:format', to: 'synapses#json', via: :get, as: :json
|
|
|
|
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
|
|
|
|
|
|
resources :maps, except: [:new, :edit]
|
|
match 'maps/:id/embed', to: 'maps#embed', via: :get, as: :embed
|
|
match 'maps/:id/:format', to: 'maps#json', via: :get, as: :json
|
|
|
|
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
|
|
|
|
resources :users, except: [:show, :index]
|
|
|
|
resources :mappings
|
|
|
|
end
|