diff --git a/build-server-crystal.cr b/build-server-crystal.cr index 120ac3b..54be04c 100644 --- a/build-server-crystal.cr +++ b/build-server-crystal.cr @@ -3,12 +3,16 @@ require "kemal" strategies_dir = ENV.fetch("STRATEGIES_DIR") post "/:strategy" do |env| - output = IO::Memory.new + output = IO::Memory.new + params = env.params.query.to_h.to_json + puts params + hook = env.params.json.to_json + puts hook Process.run( "#{strategies_dir}/#{env.params.url["strategy"]}", [ - env.params.query.to_h.to_json, - env.params.json.to_json + params, + hook, ], output: output, error: output,