Closed robertguss closed 2 years ago
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/cypress-io/cypress-realworld-testing-course-app/GSRisPRfsxB3EmzAd72zXsRZaLV2
✅ Preview: https://cypress-realworld-testing-course-app-git-dx-7-e3ab8e-cypress-io.vercel.app
@kevinold this is a very simple API route, but I think it will do the job. Let me know what you think.
@robertguss Looks good for the API endpoint, but use React Hook Form to manage the form and handle the result of subscribing.
@kevinold this is ready to be reviewed again. I updated the tests to use cy.intercept
to modify the content-type header as the API should only allow application/json
. let me know what you think.
…n the home page hero in a form element to use this new api route.