Class: API::V1::LogsController

Inherits:
APIController
  • Object
show all
Defined in:
app/controllers/faalis/api/v1/logs_controller.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) index

GET /api/v1/logs



7
8
9
10
# File 'app/controllers/faalis/api/v1/logs_controller.rb', line 7

def index
  @data = File.open("#{Rails.root}/log/#{Rails.env}.log").read(4096)
  respond_with(@data)
end