Permalink
Browse files

Adjust webrick example to the new API. (fixes #47)

  • Loading branch information...
1 parent 5a2200b commit 000ea6a09620fbca78294062604971bfb411e781 @bernd bernd committed May 31, 2012
Showing with 6 additions and 2 deletions.
  1. +6 −2 examples/webrick.rb
View
@@ -14,6 +14,10 @@ def to_html
end
end
-Webmachine::Dispatcher.add_route([], HelloResource)
+App = Webmachine::Application.new do |app|
+ app.routes do
+ add [], HelloResource
+ end
+end
-Webmachine.run
+App.run

0 comments on commit 000ea6a

Please sign in to comment.