Class: ApiController

Inherits:
ApplicationController show all
Defined in:
app/controllers/api_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject


11
12
13
14
15
16
17
18
19
# File 'app/controllers/api_controller.rb', line 11

def index
  hash = {
    topics:     topics.as_api_response(:ios_v1),
    locations:  locations.as_api_response(:ios_v1),
    events:     events.as_api_response(:ios_v1),
    users:      users.as_api_response(:ios_v1),
  }
  respond_with(hash)
end