Merge pull request #10486 from tchak/fix-api-preremplissage
fix(api): public api v1 should not inherit from api v1
This commit is contained in:
commit
994804e22d
1 changed files with 5 additions and 1 deletions
|
@ -1,8 +1,12 @@
|
|||
class API::Public::V1::BaseController < APIController
|
||||
class API::Public::V1::BaseController < ApplicationController
|
||||
skip_forgery_protection
|
||||
|
||||
before_action :check_content_type_is_json, if: -> { request.post? || request.patch? || request.put? }
|
||||
|
||||
before_action do
|
||||
Current.browser = 'api'
|
||||
end
|
||||
|
||||
protected
|
||||
|
||||
def render_missing_param(param_name)
|
||||
|
|
Loading…
Reference in a new issue