Permalink
Browse files

Fix README.md again....

  • Loading branch information...
maritz committed Nov 30, 2010
1 parent e4772f7 commit bfec7d94e8bea35758f8865a068d3c97f707f789
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -60,7 +60,7 @@ You can use regular expressions as well. This leads myapp.com/register to your U
Ni.addRoute(/^\/register/i, '/User/register');
If you want to use arguments with custom routes, you can do that as well:
- Ni.addRoute(/^\/details\/([\d]+)/i, '/User/details/$1');
+ Ni.addRoute(/^\/details\/(.*)$/i, '/User/details/$1');
You can also define functions to test the path. For example:
Calling myapp.com/add/1/2 will internally redirect to use the "Number" controller and call the "positive" function, while calling

0 comments on commit bfec7d9

Please sign in to comment.