Answer the question
In order to leave comments, you need to log in
How are widgets implemented in Express js?
All examples for the question are taken from here: https://developer.mozilla.org/en-US/docs/Learn/Ser...
Suppose, on the main page of the site, I display a list of books:
And this is how I display information about a specific book:router.get('/', book_controller.index);
router.get('/book/:id', book_controller.book_detail);
router.get('/book/:id', {
books: book_controller.book_detail,
user: user_controller.name );
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question