safe.b68dev.xyz/controllers
Bobby 8799189a04
feat: initiate db connection only once
db is now initiated via utilsController, and gets re-used by main
lolisafe.js script and the other controllers

this should now make sure we only have 1 active db connection pool ever

this is a pretty big refactor due to how we used to reference db,
but it should functionally be identical
2022-06-04 04:21:56 +07:00
..
handlers fix: remove token from local storage if invalid 2022-05-06 21:58:23 +07:00
utils fix: remove token from local storage if invalid 2022-05-06 21:58:23 +07:00
albumsController.js feat: initiate db connection only once 2022-06-04 04:21:56 +07:00
authController.js feat: initiate db connection only once 2022-06-04 04:21:56 +07:00
pathsController.js feat: list albums' total size and zip size 2021-02-12 15:48:40 +07:00
permissionController.js feat: usergroup-based file retention periods 2022-05-07 02:17:31 +07:00
tokenController.js feat: initiate db connection only once 2022-06-04 04:21:56 +07:00
uploadController.js feat: initiate db connection only once 2022-06-04 04:21:56 +07:00
utilsController.js feat: initiate db connection only once 2022-06-04 04:21:56 +07:00