class OliveBranch::Checks

Public Class Methods

content_type_check(content_type) click to toggle source
# File lib/olive_branch/middleware.rb, line 5
def self.content_type_check(content_type)
  content_type =~ /application\/json/ || content_type =~ /application\/vnd\.api\+json/
end
default_exclude(env) click to toggle source
# File lib/olive_branch/middleware.rb, line 9
def self.default_exclude(env)
  false
end