Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ee1f28e9a0
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (14 sloc) 0.322 kb
require 'goliath'
require 'omnipipe'
require 'goliath/rack/templates'
class PipeWelcome < Goliath::API
include Goliath::Rack::Templates
def response(env)
[200, {}, erb(:index)]
end
end
class PipeServer < Goliath::API
use Rack::Static, :urls => ['/public']
get '/', PipeWelcome
get '/cmd', OmniPipe
end
Jump to Line
Something went wrong with that request. Please try again.