More secure route for settings
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
Rails:
|
||||
Enabled: true
|
||||
|
||||
Rails/ApplicationRecord:
|
||||
Enabled: false
|
||||
|
||||
AllCops:
|
||||
TargetRubyVersion: 2.1
|
||||
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
# Redmine Messenger plugin for Redmine
|
||||
|
||||
RedmineApp::Application.routes.draw do
|
||||
match 'projects/:id/messenger_settings/:action', controller: 'messenger_settings', via: %i[get post put patch]
|
||||
match 'projects/:id/messenger_settings/save',
|
||||
to: 'messenger_settings#save',
|
||||
via: %i[post put patch]
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user