Sha256: 8a980328f083ca358543d884bd69785c20c792cd25b4841b4452dee6b5bb149a

Contents?: true

Size: 231 Bytes

Versions: 2

Compression:

Stored size: 231 Bytes

Contents

module Api
  class TasksController < BaseController
    require_permission :read, :stack

    def index
      render_resources stack.tasks
    end

    def show
      render_resource stack.tasks.find(params[:id])
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
shipit-engine-0.1.0 app/controllers/api/tasks_controller.rb
shipit-engine-0.0.1.pre app/controllers/api/tasks_controller.rb