Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (14 sloc) 322 Bytes
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
Something went wrong with that request. Please try again.