docs: add "Creating a CRUD API" example (#1361)

closes https://github.com/denoland/fresh/issues/768
supersedes https://github.com/denoland/fresh/pull/853

I'm not sure if this is what Ryan had in mind when opened 768. But this
PR includes some working code, references Deno KV, and briefly touches
on `OPTIONS` as a bonus.

Should I link to https://deno.com/blog/build-crud-api-oak-denokv where I
borrowed some code from? I must admit I'm a bit confused about why Andy
chose to write about Oak instead of Fresh in this post...
This commit is contained in:
Reed von Redwitz
2023-06-27 09:18:49 +02:00
committed by GitHub
parent 2b92b1c526
commit ee3e4a1145
3 changed files with 274 additions and 1 deletions
+2 -1
View File
@@ -48,7 +48,8 @@
["using-twind-v1", "Using Twind v1"],
["init-the-server", "Initializing the server"],
["using-fresh-canary-version", "Using Fresh canary version"],
["dealing-with-cors", "Dealing with CORS"]
["dealing-with-cors", "Dealing with CORS"],
["creating-a-crud-api", "Creating a CRUD API"]
]
}
}