diff options
author | 2022-04-05 19:15:58 -0700 | |
---|---|---|
committer | 2022-04-05 19:15:58 -0700 | |
commit | ddaab5a836a0ec669ceebeb75ff8543178e89dc3 (patch) | |
tree | 74e05c01ef02393f0b3856b4db40c2fe74f479ce | |
parent | f97e6d04a73ad8d8c9b629fbe4d7f560732ac519 (diff) | |
download | bun-ddaab5a836a0ec669ceebeb75ff8543178e89dc3.tar.gz bun-ddaab5a836a0ec669ceebeb75ff8543178e89dc3.tar.zst bun-ddaab5a836a0ec669ceebeb75ff8543178e89dc3.zip |
fix example
-rw-r--r-- | examples/bun/http.ts | 20 |
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; |