From 04bc4c7405c33cb5c31f0c0e5d25bb2b3de3bf36 Mon Sep 17 00:00:00 2001 From: Joshua Coles Date: Sun, 8 Oct 2023 22:01:01 +0100 Subject: [PATCH] Fix incorrect methods on work item routes. --- config/routes.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/routes.rb b/config/routes.rb index 15695b9..4abb673 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -15,8 +15,8 @@ Rails.application.routes.draw do post '/lectures/:id/start_preparation', to: 'lecture#start_preparation', as: :lecture_start_preparation post '/lectures/:id/start_review', to: 'lecture#start_review', as: :lecture_start_review - get '/work_items/:id/start_time_entry', to: 'work_item#start_time_entry', as: :work_item_start_time_entry - get '/work_items/:id/complete', to: 'work_item#complete', as: :work_item_complete + post '/work_items/:id/start_time_entry', to: 'work_item#start_time_entry', as: :work_item_start_time_entry + post '/work_items/:id/complete', to: 'work_item#complete', as: :work_item_complete post '/lectures/:id/checkin', to: 'lecture#checkin', as: :lecture_checkin end