README.md in nephos-server-0.1.4 vs README.md in nephos-server-0.1.5
- old
+ new
@@ -17,11 +17,10 @@
- Improve rendering
- html support
- Routing
- improve get with arguments
- - add post and put (like get)
- add ressource (elarge urls)
- Database connection
# Start
@@ -63,9 +62,12 @@
## Routing
Like in ``/routes.rb``, you have to route manually the api.
```ruby
-get url: "/", controller: "MainController", method: "root"
-get url: "/add", controller: "MainController", method: "add_url"
-get url: "/rm", controller: "MainController", method: "rm_url"
+get url: "/", controller: "MainController", method: "root" # /
+get url: "/add", controller: "MainController", method: "add_url" # /add
+get url: "/rm", controller: "MainController", method: "rm_url" # /rm
+resource "infos" do
+ get url: "/", controller: "MainController", method: "root" # generate /infos
+end
```