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