Class: API::V1::LogsController

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

Instance Method Summary collapse

Methods inherited from Faalis::APIController

allow_query_on, #allowed_fields, #authenticate_filter, #load_resource_by_query, #set_csrf_cookie_for_ng

Methods inherited from Faalis::ApplicationController

#set_locale

Instance Method Details

#indexObject

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