owned this note changed 2 years ago
Published Linked with GitHub

'gets all artist records' pg solution

// Remember your create function will already be here const getAllArtists = async (_, res) => { try { const { rows } = await db.query('SELECT * FROM Artists') res.status(200).json(rows) } catch (err) { res.status(500).json(err.message) } } module.exports = { ..., getAllArtists }

Export all of your functions!

Select a repo