voorhoede / head-start

Base setup on top of headless services to help you quickly start a new website
ISC License
3 stars 0 forks source link

feature: API routes #47

Closed jbmoelker closed 11 months ago

jbmoelker commented 11 months ago

Changes

Associated issue

How to test

  1. Open preview link
  2. Verify you are redirected to home page in your preferred (browser/system) locale (or to the default locale if yours isn't available).
  3. Test API endpoint using URL searchParams: /api/demo/hello?to=you
  4. Verify it responds with dynamic JSON (you can change the to value)
  5. Test API endpoint using request.cf props: /api/demo/geo
  6. Verify it responds with dynamic JSON (your location)

Checklist

decrek commented 11 months ago

With the new icon implementation there are no problems anymore right? So indeed I would add wrangler for development and the rest looks good.

cloudflare-workers-and-pages[bot] commented 11 months ago

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: c2e0f6b
Status: ✅  Deploy successful!
Preview URL: https://869fc4e7.head-start.pages.dev
Branch Preview URL: https://feat-api-routes.head-start.pages.dev

View logs

jbmoelker commented 11 months ago

With the new icon implementation there are no problems anymore right? So indeed I would add wrangler for development and the rest looks good.