Create global database reference before creating routes so it’s available from global scope
Use case
I want to initialise tables with data outside of my routes.
Proposed implementation
Currently, the global JavaScript Database (JSDB) db
reference is only available within route bodies, not from the global scope outside of the route bodies in route files.
Move the creation of the lazy database handler / loader before the app route configuration so that db
will be available from global scope on route files.