Skip to content

Commit

Permalink
docs(examples): typo in hello-world
Browse files Browse the repository at this point in the history
  • Loading branch information
gr2m committed Sep 17, 2024
1 parent cf87d43 commit 99881b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/hello-world/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import {
createDoneEvent,
} from "@copilot-extensions/preview-sdk";

const server = createServer((request, ressponse) => {
const server = createServer((request, response) => {
console.log(`Received [${request.method}] to [${request.url}]`);

if (request.method === "GET") {
return ressponse.end("ok");
return response.end("ok");
}

ressponse.write(createTextEvent("Hello, world!"));
ressponse.end(createDoneEvent());
response.write(createTextEvent("Hello, Francis Fuzz!"));
response.end(createDoneEvent());
});

const PORT = process.env.PORT || 3000;
Expand Down

0 comments on commit 99881b1

Please sign in to comment.