Module: Core::Service::ContentFiltering

Defined in:
app/api/core/service/content_filtering.rb

Overview

Everything coming in and going out should be JSON.

Defined Under Namespace

Modules: Helpers Classes: InvalidBodyContentType, InvalidRequestedContentType, InvalidRequestedContentTypeOnFile

Class Method Summary collapse

Class Method Details

.registered(app) ⇒ Object


61
62
63
64
65
66
67
68
69
70
71
72
# File 'app/api/core/service/content_filtering.rb', line 61

def self.registered(app)
  app.helpers Helpers

  app.before_all_actions do
    check_acceptable_content_type_requested!
    process_request_body
  end

  app.after_all_actions do
    process_response_body
  end
end