From 6e468fd5b54c1e6c3a47eae3622afbe67c5a0581 Mon Sep 17 00:00:00 2001 From: caasi Huang Date: Fri, 20 Jun 2014 03:09:26 +0800 Subject: [PATCH] Update README.md * Try to fix the example: 'Routing with conditions'. * Add two Node.js bindings. --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0658b6c..4a053a4 100644 --- a/README.md +++ b/README.md @@ -156,7 +156,7 @@ if (err != 0) { // in your http server handler // create the match entry for capturing dynamic variables. -match_entry * entry = match_entry_create("/foo/bar"); +match_entry * entry = match_entry_create("/blog/post"); entry->request_method = METHOD_GET; @@ -164,7 +164,7 @@ route *matched_route = r3_tree_match_route(n, entry); matched_route->data; // get the data from matched route // free the objects at the end -r3_route_free(r1); +match_entry_free(entry); r3_tree_free(n); ``` @@ -396,7 +396,8 @@ Binding For Other Languages * Python pyr3 by @thedrow * Haskell r3 by @MnO2 * Vala r3-vala by @Ronmi - +* Node.js node-r3 by @othree +* Node.js node-libr3 by @caasi License