likes and views should be recorded only once for each address - art._id
likes can not be cancelled
number of likes and views should be recorded
Taks 2:
go to 'api/puglicGallery/[ardId]/route.js'
write POST functions to update likes and views
in 'api/publicGallery/rout.js', modify GET so that it can return number of views and likes for each piece of art, and whether a user of address address has viewed or liked the art.
Switch to branch '#41' Task 1:
address - art._id
Taks 2:
address
has viewed or liked the art.I will test these for you.