Skip to content

Commit fedb77f

Browse files
Update with suggestions
1 parent 85d9f8c commit fedb77f

File tree

1 file changed

+2
-2
lines changed
  • src/content/docs/workers/tutorials/build-a-qr-code-generator

1 file changed

+2
-2
lines changed

src/content/docs/workers/tutorials/build-a-qr-code-generator/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ async function generateQRCode(request) {
142142

143143
## 4. Test in an application UI
144144

145-
The Worker will work if a user sends a `POST` request to a route, but it would be best practice to also be able to test the function with a proper interface. At this point in the tutorial, if any request is received by your function that is not a `POST`, a `405` response is returned. The new version of `fetch` should return a new `Response` with a static HTML document instead of the `405` error:
145+
The Worker will execute when a user sends a `POST` request to a route, but it is best practice to also provide a proper interface for testing the function. At this point in the tutorial, if any request is received by your function that is not a `POST`, a `405` response is returned. The new version of `fetch` should return a new `Response` with a static HTML document instead of the `405` error:
146146

147147
```js null {23-54}
148148
export default {
@@ -258,6 +258,6 @@ npx wrangler deploy
258258

259259
## Related resources
260260

261-
In this tutorial, you built and deployed a Worker application for generating QR codes. If you would like to see the full source code for this application, you can find it [on GitHub](https://github.com/cloudflare/workers-sdk/tree/main/templates/examples/qr-code-generator).
261+
In this tutorial, you built and deployed a Worker application for generating QR codes. If you would like to see the full source code for this application, you can find it [on GitHub](https://github.com/kristianfreeman/workers-qr-code-generator).
262262

263263
If you want to get started building your own projects, review the existing list of [Quickstart templates](/workers/get-started/quickstarts/).

0 commit comments

Comments
 (0)