boolean-uk / team-dev-server-ex-2410-team3

0 stars 0 forks source link

4 create the objects user post -- ready for review #31

Closed LudwigJL closed 1 month ago

LudwigJL commented 1 month ago

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.

amos1969 commented 1 month ago

Approved