thanks for the tutorial it helps me a lot... :)
But you forgot to pass "connection" from "server.js" to "html-routes". It will give you an error like "connection couldn't be found..."
So you need to change this lines of code:
( in the server.js file ) require('./routes/html-routes')(app); to => require('./routes/html-routes')(app, connection);
and ( in the html-routes.js ) module.exports = (app) => {...}); to => module.exports = (app, connection) => {...});
thank you so much for your comment I hadn't that issue but as soon as possible I will check and will update my post
Yup, that's what I was missing too.. I didn't have the auth issue as they already patched that.. but.. Pretty much did a facepalm when I read the comment. Thanks to both of you!
this comment really help ... thanks
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
thanks for the tutorial it helps me a lot... :)
But you forgot to pass "connection" from "server.js" to "html-routes". It will give you an error like "connection couldn't be found..."
So you need to change this lines of code:
( in the server.js file )
require('./routes/html-routes')(app);
to => require('./routes/html-routes')(app, connection);
and ( in the html-routes.js )
module.exports = (app) => {...});
to => module.exports = (app, connection) => {...});
thank you so much for your comment I hadn't that issue but as soon as possible I will check and will update my post
Yup, that's what I was missing too.. I didn't have the auth issue as they already patched that.. but.. Pretty much did a facepalm when I read the comment.
Thanks to both of you!
this comment really help ... thanks