fix(api): public api v1 should not inherit from api v1
This commit is contained in:
parent
395967e0a1
commit
bf3455bbf0
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