diff --git a/config/routes.rb b/config/routes.rb index b3ac4140db32e73925b75bb0e7d7b7761c844ef6..97af4816a90ba7caca44c7c601a399c51c935b3f 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -40,13 +40,15 @@ Rails.application.routes.draw do member do post :like post :bookmarks + get :collections end end resources :institutions resources :collections do member do - post '/learning_object/:learning_object_id', as: :add_collection_learning_object, action: :add_learning_object + # add a learning object for some collection + post '/learning_object/:learning_object_id', as: :add_learning_object, action: :add_learning_object end end @@ -63,7 +65,7 @@ Rails.application.routes.draw do get '/search/fetch' => 'search#fetch', as: 'search_fetch' get '/autocomplete' => 'search#autocomplete' - get '/subject/:id' => 'welcome#subject', as:'subject_index' + get '/subject/:id' => 'welcome#subject', as: 'subject_index' get '/collection' => 'welcome#collection' get '/add_file' => 'welcome#add_file' get '/signup' => 'welcome#signup'