Sha256: 29b5ba048099762ac2d732c781e627d3cfb1692e30b1ea26e7c1dc022ad85d54

Contents?: true

Size: 302 Bytes

Versions: 3

Compression:

Stored size: 302 Bytes

Contents

get "/check" do
  "ok: explicit_service"
end

mount_service ExplicitService do |service|
  # def echo(one, two, a:, b:)
  post "/echo/:a" => :explicit_echo

  put "/echo_context" do
    ::Simple::Service.with_context(context) do
      ::Simple::Service.invoke(service, :echo_context)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple-httpd-0.3.4 examples/ex3/example_service.rb
simple-httpd-0.3.3 examples/ex3/example_service.rb
simple-httpd-0.3.1 examples/ex3/example_service.rb