lib/micro/examples/sum.rb in micro-rb-0.1.0.rc2 vs lib/micro/examples/sum.rb in micro-rb-0.1.0.rc3

- old
+ new

@@ -15,8 +15,10 @@ response end end -server = MicroRb::Servers::Web.new(:test, debug: true, metadata: { example: 'Service' }) -server.add_handler MyHandler.new +service_config = MicroRb::ServiceConfiguration.new(name: :test, metadata: { example: 'Service' }) +service_config.add_handler(MyHandler.new) + +server = MicroRb::Servers::Web.new(service_config) server.start!