Files
fx-serverless/packer/images/ruby/app.rb
Minghe ab127a36ff support image operation, (#266)
* fx image build, build a function into a image which a API service handle with function
* fx image export, export service into a directory, for easy debug, we
  can just go the directory to do everything with Docker cli
2019-09-25 20:06:49 +08:00

27 lines
383 B
Ruby
Vendored

require 'sinatra'
require 'json'
require_relative 'fx.rb'
set :port, 3000
post '/' do
ctx = {
:request => request,
:response => response,
:status => status,
:headers => headers,
}
fx ctx
end
get '/' do
ctx = {
:request => request,
:response => response,
:status => status,
:headers => headers,
}
fx ctx
end