Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 464 Bytes

File metadata and controls

12 lines (8 loc) · 464 Bytes

An example of using the Usher routing library in Node.js

To run the example:

Execute the following command in the example root directory
npm i && node src/main.js

Some routes to try:

  • '/' - this is a home route
  • '/user/:id?' - returns an user id, the parameter is optional: /user/6969
  • '/book/:id?/comment/:commentId?' - returns a book id and comment id if given, the parameters id and commentId are optional: /book/888/comment/142