From 6c6c9a6cf021cee7877a96d34a953d2885ef8a42 Mon Sep 17 00:00:00 2001 From: "Akshay\" (aider)" Date: Fri, 8 Nov 2024 22:40:42 +0000 Subject: feat: Export and import db instance in index.js and routes/index.js --- src/index.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/index.js') diff --git a/src/index.js b/src/index.js index ea2fea1..ae9d87b 100644 --- a/src/index.js +++ b/src/index.js @@ -33,6 +33,8 @@ db.run(` ) `); +module.exports = { db }; + const port = process.env.READIT_PORT; const server = app.listen(port ? port : 3000, () => { console.log(`started on ${server.address().port}`); -- cgit v1.2.3