Skip to content
Snippets Groups Projects
Commit c6ca05bd authored by Mauricio Giacomini Girardello's avatar Mauricio Giacomini Girardello
Browse files

adding routes for add learning objects in collections and get all collections of a learning object

parent 3029c595
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment