Skip to content

Instantly share code, notes, and snippets.

@thekindofme
Last active August 29, 2015 14:12
Show Gist options
  • Save thekindofme/e06676ec9b657e3aa7d5 to your computer and use it in GitHub Desktop.
Save thekindofme/e06676ec9b657e3aa7d5 to your computer and use it in GitHub Desktop.
Routes to be verified with the Flash team
# TODO: verify route with flash team
get "certificates/:action/:id/(:points)(/:date)", :controller => :certificates, :as => :certificates
get '/diag_menu_scores_student/:user_id' => 'diag_menu_scores_student#index', :as => :diag_menu_scores_student
put '/change_arena_level' => 'arena_levels#update', :as => :change_arena_level
post '/account_data_store' => 'account_data_stores#create'
post '/teacher_data_store' => 'teacher_data_stores#create'
post 'add_pre_reading_keyword' => 'pre_reading_exercises#add_keyword', :as => :add_pre_reading_keyword
delete 'remove_pre_reading_keyword' => 'pre_reading_exercises#remove_keyword', :as => :remove_pre_reading_keyword
post 'add_phonics_keyword' => 'phonics_exercises#add_keyword', :as => :add_phonics_keyword
delete 'remove_phonics_keyword' => 'phonics_exercises#remove_keyword', :as => :remove_phonics_keyword
post 'add_spelling_keyword' => 'spelling_lists#add_keyword', :as => :add_spelling_keyword
delete 'remove_spelling_keyword' => 'spelling_lists#remove_keyword', :as => :remove_spelling_keyword
post 'add_reading_keyword' => 'reading_stories#add_keyword', :as => :add_reading_keyword
delete 'remove_reading_keyword' => 'reading_stories#remove_keyword', :as => :remove_reading_keyword
post 'add_comprehension_keyword' => 'comprehension_stories#add_keyword', :as => :add_comprehension_keyword
delete 'remove_comprehension_keyword' => 'comprehension_stories#remove_keyword', :as => :remove_comprehension_keyword
post 'add_vocab_keyword' => 'vocab_lists#add_keyword', :as => :add_vocab_keyword
delete 'remove_vocab_keyword' => 'vocab_lists#remove_keyword', :as => :remove_vocab_keyword
post 'add_grammar_keyword' => 'grammar_exercises#add_keyword', :as => :add_grammar_keyword
delete 'remove_grammar_keyword' => 'grammar_exercises#remove_keyword', :as => :remove_grammar_keyword
namespace :api do
namespace :quests do
namespace :v1 do
get '/menu/destroy_cache' => 'menu#destroy_cache_index', as:'destroy_cache_index'
post '/menu/destroy_cache' => 'menu#destroy_cache', as:'destroy_cache'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment