summaryrefslogtreecommitdiffstats
path: root/app/controllers/journals_controller.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2022-03-23 14:26:47 +0000
committerGo MAEDA <maeda@farend.jp>2022-03-23 14:26:47 +0000
commit32abb15847b84842b362327587fb31661948c795 (patch)
tree4bab0b4b27fb4c4b25dd7784c9d8ee97fa874b18 /app/controllers/journals_controller.rb
parent30d91c85036132b3524845fee4746ae014c293d4 (diff)
downloadredmine-32abb15847b84842b362327587fb31661948c795.tar.gz
redmine-32abb15847b84842b362327587fb31661948c795.zip
Add support for PUT API to journals (#10171).
Patch by Mizuki ISHIKAWA . git-svn-id: https://svn.redmine.org/redmine/trunk@21496 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/controllers/journals_controller.rb')
-rw-r--r--app/controllers/journals_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/journals_controller.rb b/app/controllers/journals_controller.rb
index 368dfdf25..a9cf41d8c 100644
--- a/app/controllers/journals_controller.rb
+++ b/app/controllers/journals_controller.rb
@@ -23,6 +23,7 @@ class JournalsController < ApplicationController
before_action :find_optional_project, :only => [:index]
before_action :authorize, :only => [:new, :edit, :update, :diff]
accept_atom_auth :index
+ accept_api_auth :update
menu_item :issues
helper :issues
@@ -97,6 +98,7 @@ class JournalsController < ApplicationController
respond_to do |format|
format.html {redirect_to issue_path(@journal.journalized)}
format.js
+ format.api { render_api_ok }
end
end