Potential improvement for guestbook
dextermb opened this issue · comments
Dexter Marks-Barber commented
Hey,
I recently watched your YouTube video on prisma/planetscale.
It's great to see technologies that make it easier to integrate into any codebase.
leerob.io/pages/api/guestbook/index.ts
Lines 9 to 15 in 039b46e
I noticed that you're always loading all guestbook entries even if someone is attempting to create one.
Surely loading all entries should only be done within the GET method?
Cheers!
Lee Robinson commented
Great catch!
Lee Robinson commented