You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This discussion was converted from issue #5002 on September 29, 2022 17:50.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have too many routes in my express app, all of them are loaded when the app started.
I want to load each route only when needed.
so, I tried this approach but with no luck.
collections.ts
when the app starts it logs 'getting route: collections' once and in advance (even if it not accessed).
but I want to load this route only when we access the route 'api/collections'
Beta Was this translation helpful? Give feedback.
All reactions