Refactor api controllers to inherit from a common ApiController

This commit is contained in:
Andy Allan
2019-03-20 14:16:15 +01:00
parent 53cc1d2d11
commit 3bb07e29ec
19 changed files with 21 additions and 36 deletions

View File

@ -1,6 +1,5 @@
module Api
class ChangesetCommentsController < ApplicationController
skip_before_action :verify_authenticity_token
class ChangesetCommentsController < ApiController
before_action :authorize
before_action :api_deny_access_handler