Refactor post /todos/:id/delete route on main.rb file