I have a site which has a page with form that accepts user email and passes it to Keycloak login.
I need someone to be able to send a POST
request to my service with:
headers:
content type: application/x-www-form-urlencoded
body: {
email: [email protected]
}
Then my site has to receive this request, extract email from body and render a specific page with the form mentioned above and pass email from the body to input’s value.
Is it possible to do using Next.JS?
We have api
in Next.JS and possibly I’m able to set up a route
to accept this POST
request with all the data but how do render a page when I receive request?