Refactor api controllers to inherit from a common ApiController
This commit is contained in:
parent
53cc1d2d11
commit
3bb07e29ec
19 changed files with 21 additions and 36 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue