Here's the backend API gist. It has 1 post and 1 GET API. Post API adds image Get URL and GET API checks if the zap is present and sends the image to frontend.
Let me know for questions.
https://gist.github.com/starbackr-dev/7e7ed15dbd0229e8c58b3a80c42cc96b