README.md in deas-0.40.0 vs README.md in deas-0.41.0
- old
+ new
@@ -7,14 +7,16 @@
```ruby
# in your rackup file (or whatever)
require 'deas'
-class MyApp
+class MyServer
include Deas::Server
- get '/', 'HelloWorldHandler'
+ router do
+ get '/', 'HelloWorldHandler'
+ end
end
class HellowWorldHandler
include Deas::ViewHandler
@@ -23,11 +25,11 @@
"<h1>Hello World</h1>"
end
end
-app = MyApp.new
-run app
+server = MyServer.new
+run server
```
## Installation
Add this line to your application's Gemfile: