Class: OliveBranch::Checks

Inherits:
Object
  • Object
show all
Defined in:
lib/olive_branch/middleware.rb

Class Method Summary collapse

Class Method Details

.content_type_check(content_type) ⇒ Object



5
6
7
# 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) ⇒ Object



9
10
11
# File 'lib/olive_branch/middleware.rb', line 9

def self.default_exclude(env)
  false
end