U
U
Urukhayy2018-06-29 08:28:24
Node.js
Urukhayy, 2018-06-29 08:28:24

Are there ready-made solutions for generating routes in Express?

Are there ready-made solutions for generating routes in Express? So that the creation of all routes is automatic, without the hardcode of the route as a string.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Perov, 2018-06-29
@sqrdeer

Maybe it's about something else, but I do not quite understand the shortcomings of such a record
router.post('/sign-up', auth.controller);

A
Anton Anton, 2018-06-29
@Fragster

If based on the DB model, that is, for example, https://www.npmjs.com/package/sequelize-router

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question