Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix README.md again....

  • Loading branch information...
commit bfec7d94e8bea35758f8865a068d3c97f707f789 1 parent e4772f7
@maritz maritz authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  README.md
View
2  README.md
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.