[英]How to get list of routes in sailsjs including blueprints and custom routes
I am newbie sailsjs. 我是新手sailsjs。 I would like to know how to list out all the routes including blueprints and custom routes in the form of JSON. 我想知道如何以JSON的形式列出所有路线,包括蓝图和自定义路线。
sails.config.routes
will get you your defined routes. sails.config.routes
将为您定义路线。 Currently there is a github issue to collect the rest 目前有一个github问题来收集其余的
https://github.com/balderdashy/sails/pull/2659#issuecomment-77417170 https://github.com/balderdashy/sails/pull/2659#issuecomment-77417170
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.