Sails JS dynamically adds routes

I am trying to find a way to dynamically add routes from the config / routes.js file. I am creating a module that needs some routes and do not want the user to add it manually in config / routes.js.

Is there any way to do this? I watch doc sails and maybe with hooks, I cannot achieve this, but I cannot find how

thank

+4
source share
1 answer

I'm curious Which routing path do you want to create?

Remember that wildcard is available in route.js

'GET /validEmail/*', "VerificationController.verifyEmail"'
+1
source

All Articles