Sha256: 2cb014a372c98fdf8b4c6c421e03fae899696fc29d1e4ebcad3e4401639c00d1

Contents?: true

Size: 336 Bytes

Versions: 1

Compression:

Stored size: 336 Bytes

Contents

class Foobara::RailsController < ApplicationController
  def run
    foobara_response = RAILS_COMMAND_CONNECTOR.run(self)
    foobara_response.command

    foobara_response.headers.each_pair do |key, value|
      response.set_header(key, value)
    end

    render json: foobara_response.body, status: foobara_response.status
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
foobara-rails-command-connector-0.0.1 lib/foobara/rails/controller.rb