Router: Router object. The router object coordinates matching urls to...

Description Details

Description

Add possible route using the appropriate http verb (get, post, put, delete). Currently only get is implemented. These methods have two arguments: route, the description of the url to match, and the callback to run when the route is matched.

Details

Route urls have a special syntax. They are basically paths but with two special keywords: :param which matches a single component and * which will match anything.


hadley/sinartra documentation built on May 17, 2019, 12:47 p.m.