From c4284d7c2ab7b73af8424fcf379f44dee1682a1a Mon Sep 17 00:00:00 2001 From: Yuval Adam <_@yuv.al> Date: Thu, 10 Jul 2025 13:49:23 +0200 Subject: homepage usage --- src/pages/index.astro | 261 +++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 259 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/pages/index.astro b/src/pages/index.astro index 2d14107..363e843 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -8,9 +8,266 @@ -
A persistent counter demonstrating Durable Objects with Astro and Cloudflare Workers
+ +This demo showcases a Cloudflare Durable Object that maintains a persistent counter. The counter state survives across requests, deployments, and server restarts.
+ +GET /api/counter - Retrieve the current counter valuePOST /api/counter - Increment the counter by 1POST /api/counter?action=reset - Reset the counter to 0