diff options
author | Akshay" (aider) <[email protected]> | 2024-11-08 22:40:42 +0000 |
---|---|---|
committer | Akshay" (aider) <[email protected]> | 2024-11-08 22:40:42 +0000 |
commit | 6c6c9a6cf021cee7877a96d34a953d2885ef8a42 (patch) | |
tree | c8dc7dd9b8aa69fd11ed0ca8b377d9c4cb1e288c /src/routes/index.js | |
parent | 105b68e6a2df38cd47d7f9a5f07248e56bc2dc8a (diff) |
feat: Export and import db instance in index.js and routes/index.js
Diffstat (limited to 'src/routes/index.js')
-rw-r--r-- | src/routes/index.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/routes/index.js b/src/routes/index.js index c29933e..93ebf46 100644 --- a/src/routes/index.js +++ b/src/routes/index.js | |||
@@ -2,6 +2,7 @@ const express = require("express"); | |||
2 | const he = require("he"); | 2 | const he = require("he"); |
3 | const router = express.Router(); | 3 | const router = express.Router(); |
4 | const geddit = require("../geddit.js"); | 4 | const geddit = require("../geddit.js"); |
5 | const { db } = require("../index"); | ||
5 | const G = new geddit.Geddit(); | 6 | const G = new geddit.Geddit(); |
6 | 7 | ||
7 | // GET / | 8 | // GET / |