Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/controllers/json_rpc_call_controller.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class JsonRpcCallController < ApplicationController
unloadable

before_filter :require_admin
before_filter :authorize_global
before_action :require_admin
before_action :authorize_global
accept_api_auth :handle_rpc_request

def handle_rpc_request
Expand Down
4 changes: 1 addition & 3 deletions config/routes.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
ActionController::Routing::Routes.draw do |map|
map.connect 'json_rpc_call.:format', :controller => 'json_rpc_call', :action => 'handle_rpc_request'
end
match 'json_rpc_call.:format', :controller => 'json_rpc_call', :action => 'handle_rpc_request', :via => [:get, :post, :delete, :put, :patch]