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 SwfController < ApplicationController
skip_before_action :verify_authenticity_token
class SwfController < ApiController
before_action :check_api_readable
authorize_resource :class => false