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:
Paul Chavard 2024-06-04 17:01:33 +00:00 committed by GitHub
commit 994804e22d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)