module JkoApi::Constraints
Public Class Methods
matches?(request)
click to toggle source
# File lib/jko_api/constraints.rb, line 3 def self.matches?(request) request.headers['Accept'] && request.headers['Accept'].match(ACCEPT_HEADER_REGEX) && ::JkoApi.current_version_number.present? # TODO: add condition config for specific subdomain end