Which method is equivalent to url_for for Express.js

Is there any method equivalent to Rails / Flask url_for Express.js ? Express.js seems to provide a router, but I cannot find its opposite function.

+4
source share
1 answer

There is no such method, because Express is lighter and has no MVC structure by default, since Sinatra (Express was not inspired by Sinatra).

+2
source

Source: https://habr.com/ru/post/1392342/


All Articles