Hi
I want to add database access I am using both pg {postgres} and pgx {json postgres}. I use pg for auth, permissions and framework specific and pgx, redis for session and real time data.
I noticed an api.add() function, should I put the database stuff there?
api.add("pg",pg);
api.add("config",config);
Is that the best way for a global database?