I've integrated post.js into the domain, implementing a toJSON and fromJSON method that aligns with the Open API spec's responses, including profiles firstname, lastname, bio and profileURL and datetime information. I've also updated the Prisma model for post to ensure it has the correct datetime fields.
You can view the results by calling the getAll() function from post.js and using toJSON() on the output and rest it in insomnia.
I've integrated
post.js
into the domain, implementing atoJSON
andfromJSON
method that aligns with the Open API spec's responses, including profilesfirstname
,lastname
,bio
andprofileURL
and datetime information. I've also updated the Prisma model for post to ensure it has the correct datetime fields.You can view the results by calling the
getAll()
function frompost.js
and usingtoJSON()
on the output and rest it in insomnia.