Skip to content

Commit

Permalink
Handle GET /tasks/:id/runs
Browse files Browse the repository at this point in the history
Since a validation error results in the URL being shown in the address
bar, it's a good practice to support the URL for GET requests. We just
redirect back to the task page.

Co-authored-by: Derek Meulmeester <[email protected]>
  • Loading branch information
etiennebarrie and derek-meulmeester committed Nov 21, 2024
1 parent cad836d commit be7f450
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
put "resume"
end
end
get :runs, to: redirect("tasks/%{task_id}")
end

root to: "tasks#index"
Expand Down

0 comments on commit be7f450

Please sign in to comment.