JSON API
This is an example of a Greenwood API Route returning JSON when fetched on-submit of the form to display a message on the page. You can see it fire in the network tab as /api/greeting
This is a Greenwood demonstration repo showcasing various features deployed to and running on Vercel serverless functions.
This is an example of a Greenwood API Route returning JSON when fetched on-submit of the form to display a message on the page. You can see it fire in the network tab as /api/greeting
This is an example of a Greenwood API route returning an HTML response that is generated by server-rendering a Web Component (with Declarative Shadow DOM). This same component is loaded on the client-side too, so that when you click the Product Details button, state and interactivity can still be resumed. You can see it fire in the network tab as /api/fragment