Sha256: acd8f743ad29eda60e61e4cbc15e45597fb04e236afa950668b771627da031ec
Contents?: true
Size: 1.01 KB
Versions: 1
Compression:
Stored size: 1.01 KB
Contents
ActiveRecordSurveyApi::Engine.routes.draw do resources :instances resources :surveys do resources :instances do resources :instance_nodes end resources :questions do resources :answers end end resources :questions do resources :answers get 'relationships/next-question', to: 'questions#get_next_question' # Array of all possible next questions from this question post 'relationships/next-question', to: 'questions#link_next_question', as: "link_next_question" # Sets the next question for itself, or for *all answers* of the question delete 'relationships/next-question', to: 'questions#unlink_next_question', as: "unlink_next_question" end resources :answers do get 'next-question', to: 'answers#get_next_question' get 'relationships/next-question', to: 'answers#get_next_question' post 'relationships/next-question', to: 'answers#link_next_question', as: "link_next_answer_question" delete 'relationships/next-question', to: 'answers#unlink_next_question', as: "unlink_next_answer_question" end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_record_survey_api-0.0.11 | config/routes.rb |