how to call SailsJs controller function from ExpressJs router?

15 Views Asked by At

i want to call UserController from express js router when i try to do it i got Users.find is not a function is this possible?

I want to integrations of express and sails same project

within single port without api call

like router.get('/users',UserController.find(req,res));

1

There are 1 best solutions below

0
NeoNexus DeMortis On

@gaurav checkout: https://github.com/neonexus/sails-react-bootstrap-webpack

Most importunely: /config/routes.js