Allow to extend the server would allow the user to register his own stuff like custom routes, but also task scheduling, queues, easiest auth handling, etc.
I think it is important to keep the main package (agrume) simple, with only one function exported. So extending the server would be with an extendServer function on a agrume/server package (not @agrume/server, it should be a sub-export of agrume).
Allow to extend the server would allow the user to register his own stuff like custom routes, but also task scheduling, queues, easiest auth handling, etc.
I think it is important to keep the main package (
agrume
) simple, with only one function exported. So extending the server would be with anextendServer
function on aagrume/server
package (not@agrume/server
, it should be a sub-export ofagrume
).