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
src/index.ts is very bloated right now. It contains both HTTP handler logic and route registration, as well as some other arbitrary logic. All handler logic should be in dedicated modules, which should also be the one concerned about the HTTP method itself. Regarding handlers, all index should do is calling a function from the handler module passing the current router and the handler module should be the one responsible for registering it. We might also want to create dedicated modules to encapsulate logic for registering middlewares.
The text was updated successfully, but these errors were encountered:
src/index.ts
is very bloated right now. It contains both HTTP handler logic and route registration, as well as some other arbitrary logic. All handler logic should be in dedicated modules, which should also be the one concerned about the HTTP method itself. Regarding handlers, allindex
should do is calling a function from the handler module passing the currentrouter
and the handler module should be the one responsible for registering it. We might also want to create dedicated modules to encapsulate logic for registering middlewares.The text was updated successfully, but these errors were encountered: