Update project-structure.md (#3166)

Small path update
This commit is contained in:
Matthew Richmond 2024-03-13 11:42:59 -06:00 committed by GitHub
parent b4bfd63f63
commit 0ee010e5a0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -41,7 +41,7 @@ That's it. But now everywhere else in my application instead of requiring `pg` d
```js
// notice here I'm requiring my database adapter file
// and not requiring node-postgres directly
import * as db from '../db.js'
import * as db from '../db/index.js'
app.get('/:id', async (req, res, next) => {
const result = await db.query('SELECT * FROM users WHERE id = $1', [req.params.id])