Class: Api::NotificationController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/api/notification_controller.rb

Overview

this is the notification endpoint. It will call the Notifier to gather and bundle all unapproved entries in the database, and deliver them to the frontend.

Author:

Instance Method Summary (collapse)

Instance Method Details

- (Object) index



8
9
10
11
# File 'app/controllers/api/notification_controller.rb', line 8

def index
  @response = Notifier.all_notifications
  render :json => @response.to_json
end