app.route
和app.param
是express4.2新增的两个api,这里做一些说明:
express的官方文档时这样解释的:
>Returns an instance of a single route which can then be used to handle HTTP verbs with optional middleware. Using app.route() is a recommended approach to avoiding duplicate route naming and thus typo errors.