{
  "name": "Cloudflare Worker with KV and D1",
  "status": "running",
  "timestamp": "2026-04-19T00:03:27.880Z",
  "endpoints": [
    "GET / - This help message",
    "GET /set - Set a test KV value",
    "GET /get - Get the test KV value",
    "GET /api/users - List users (with ?page=N&limit=M)",
    "POST /api/users - Create a new user",
    "GET /api/posts - List all posts with user info",
    "POST /api/posts - Create a new post",
    "\n# Admin Endpoints",
    "POST /api/admin/seed-data - Reset database with sample data",
    "\n# Admin Endpoints (USE WITH CAUTION)",
    "DELETE /api/admin/clear-all - Delete all data (users, posts, KV)",
    "DELETE /api/admin/clear-users - Delete all users and their posts",
    "DELETE /api/admin/clear-posts - Delete all posts"
  ]
}