Open hurshprasad opened 7 years ago
I don't know a lot about Restify, but I don't see why SuperLogin shouldn't work. It seems to use the same MiddleWare pattern. You may need to re-write some of the routes.
I've just been trying this myself and it certainly doesn't work out of the box. Restify doesn't support app.use('/auth', superlogin.router)
syntax to register the routes.
A work around to get routes registered is here but this also causes it's own problems in that the routes that are registered use res.send(code).json()
and in restify send() doesn't support .json()
At this point I went back to express :)
webnoob
res.send from restify is already in JSON
I am wondering if anyone has tried to deploy this using restify vs. express? Is it interoperable or not?
If not does anyone know which issues you would face if it was attempted?