fix(api): public api v1 should not inherit from api v1

This commit is contained in:
Paul Chavard 2024-06-04 10:43:37 +02:00
parent 395967e0a1
commit bf3455bbf0
No known key found for this signature in database

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)