Sha256: f744b3fe2003d07f085ebb304425e5aa6cdc760e698f31bcd135bdee7613c846

Contents?: true

Size: 264 Bytes

Versions: 3

Compression:

Stored size: 264 Bytes

Contents

require_dependency "red_base/api_controller"

module RedBase
  class API::V1::LogsController < APIController

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

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
red_base-0.6.0 app/controllers/red_base/api/v1/logs_controller.rb
red_base-0.5.1 app/controllers/red_base/api/v1/logs_controller.rb
red_base-0.5.0 app/controllers/red_base/api/v1/logs_controller.rb