Class: Compass::NotificationController

Inherits:
ApplicationController show all
Includes:
ConditionalCache, Cors
Defined in:
app/controllers/compass/notification_controller.rb

Overview

Notification controller.

Instance Method Summary collapse

Methods included from ConditionalCache

#with_cache

Methods included from Cors

#cors

Methods inherited from ApplicationController

#authenticate, #current_context, #current_context_id, #validate_context

Instance Method Details

#indexObject



11
12
13
14
15
# File 'app/controllers/compass/notification_controller.rb', line 11

def index
  with_cache(providers, Compass.config.notification.cache, etag: "compass-notification") do
    render json: providers
  end
end