update README
This commit is contained in:
parent
6cc57d545f
commit
10d6a64eac
1 changed files with 2 additions and 3 deletions
|
@ -64,10 +64,9 @@ r3_tree_compile(n);
|
|||
r3_tree_dump(n, 0);
|
||||
|
||||
// match a route
|
||||
node *matched_node = r3_tree_match(n, "/foo/bar", strlen("/foo/bar"), NULL);
|
||||
node *matched_node = r3_tree_matchl(n, "/foo/bar", strlen("/foo/bar"), NULL);
|
||||
if (matched_node) {
|
||||
matched_node->endpoint; // make sure there is a route end at here.
|
||||
int ret = *( (*int) matched_node->route_ptr );
|
||||
int ret = *( (*int) matched_node->data );
|
||||
}
|
||||
|
||||
// release the tree
|
||||
|
|
Loading…
Reference in a new issue