aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-04-05 19:15:58 -0700
committerGravatar Jarred Sumner <jarred@jarredsumner.com> 2022-04-05 19:15:58 -0700
commitddaab5a836a0ec669ceebeb75ff8543178e89dc3 (patch)
tree74e05c01ef02393f0b3856b4db40c2fe74f479ce
parentf97e6d04a73ad8d8c9b629fbe4d7f560732ac519 (diff)
downloadbun-ddaab5a836a0ec669ceebeb75ff8543178e89dc3.tar.gz
bun-ddaab5a836a0ec669ceebeb75ff8543178e89dc3.tar.zst
bun-ddaab5a836a0ec669ceebeb75ff8543178e89dc3.zip
fix example
-rw-r--r--examples/bun/http.ts20
1 files changed, 10 insertions, 10 deletions
diff --git a/examples/bun/http.ts b/examples/bun/http.ts
index c528cdd02..4d58f270f 100644
--- a/examples/bun/http.ts
+++ b/examples/bun/http.ts
@@ -23,13 +23,13 @@ Bun.serve({
});
// Start a fast HTTP server from the main file's export
-export default {
- fetch(req) {
- return new Response(
- `This is another way to start a server!
- if the main file export default's an object
- with 'fetch'. Bun automatically calls Bun.serve`
- );
- },
- // so autocomplete & type checking works
-} as Bun.Serve;
+// export default {
+// fetch(req) {
+// return new Response(
+// `This is another way to start a server!
+// if the main file export default's an object
+// with 'fetch'. Bun automatically calls Bun.serve`
+// );
+// },
+// // so autocomplete & type checking works
+// } as Bun.Serve;