made updates to load envs and streamline pg pool to cut down on connections (#15)

Reviewed-on: #15
Co-authored-by: Joseph Nelson <joseph.nelson4456@gmail.com>
Co-committed-by: Joseph Nelson <joseph.nelson4456@gmail.com>
This commit was merged in pull request #15.
This commit is contained in:
2026-05-30 23:52:32 -07:00
committed by joseph.nelson4456
parent 42563e6f7c
commit dca781418f
12 changed files with 23 additions and 44 deletions
+1 -5
View File
@@ -1,13 +1,9 @@
import express from 'express'
import { Pool } from 'pg'
import { database } from '../../config/index.js'
import { pool } from '../../config/index.js'
import { check, validationResult } from 'express-validator'
const router = express.Router()
// Create a connection pool to the database
const pool = new Pool(database)
// Get all sets
router.get('/', async (req, res) => {
try {