about summary refs log tree commit diff stats
path: root/config/routes.rb
blob: 346315efe6ae1edb43579540936148384cd31e6f (plain) (blame)
1
2
3
4
5
6
7
8
Wittle::Engine.routes.draw do
  root to: 'puzzles#about'
  get 'archive' => 'puzzles#index'
  get ':id' => 'puzzles#show', as: 'puzzle'
  post ':id/start' => 'puzzles#start', as: 'start_puzzle'
  post ':id/solve' => 'puzzles#solve', as: 'solve_puzzle'
  post ':id/submit' => 'puzzles#submit', as: 'submit_puzzle'
end