Sha256: 5223a777662b10124947e7a2997c7548e60d52abaf4ca6c47b0ee7d7aab79af9

Contents?: true

Size: 402 Bytes

Versions: 5

Compression:

Stored size: 402 Bytes

Contents

require_dependency "notee/application_controller"

module Notee
  class StatusesController < ApplicationController

    def index
      @statuses = Notee::STATUS
      render json: { status: 'success', statuses: @statuses}
    end

    def show
      statuses = Notee::STATUS
      @status = statuses.key(params[:status].to_i)
      render json: { status: 'success', name: @status}
    end

  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
notee-0.3.7 app/controllers/notee/statuses_controller.rb
notee-0.3.6 app/controllers/notee/statuses_controller.rb
notee-0.3.5 app/controllers/notee/statuses_controller.rb
notee-0.3.4.1 app/controllers/notee/statuses_controller.rb
notee-0.3.4 app/controllers/notee/statuses_controller.rb