routes.rb 339 B

123456789
  1. Rails.application.routes.draw do
  2. # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
  3. get 'event-key', to: 'main#new_event_key'
  4. post 'save-data/:event_key', to: 'main#save_data'
  5. get 'download-data/:event_key', to: 'main#download_data'
  6. root 'main#home'
  7. end