Class: G5Updatable::SyncsController

Inherits:
BaseUpdatableController show all
Defined in:
app/controllers/g5_updatable/syncs_controller.rb

Instance Method Summary collapse

Instance Method Details

#indexObject



5
6
7
8
# File 'app/controllers/g5_updatable/syncs_controller.rb', line 5

def index
  timestamp = @client.locations.max_updated_at
  render json: {updated_at: formatted_timestamp(timestamp)}
end