how to create a global route prefix in sails?
问题 I just recently started using sails and nodejs. I was wondering, is there an easy way to create a global prefix using the configuration available in Sails? Or would I need to bring in another library? I found the blueprint prefix configuration in config/controller.js. It seems there ought to be an easy way to do this since the application already partially supports it... I'm trying to get something like /api/v1 in front of all routes I have for my application. Thanks. 回答1: You can set the