From 10599ab2e789ffb93a19f6aa3c100f533c460315 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sun, 29 Oct 2023 11:32:06 -0400 Subject: generate, show, solve puzzles --- config/routes.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 6cf2832..8cae7ec 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,3 +1,7 @@ Wittle::Engine.routes.draw do - get 'puzzles/index' + 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 -- cgit 1.4.1