Skip to content

Commit

Permalink
chore: missed a newline
Browse files Browse the repository at this point in the history
  • Loading branch information
iProdigy authored Apr 5, 2024
1 parent 08f76b8 commit e602c40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/json-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Thus, any third-party consumer should utilize the body entity named `payload_jso

Due to this structure, trying to parse the full `multipart/form-data` as JSON will not succeed until you specifically grab the `payload_json` entity. Competent web frameworks should handle the multipart parsing, so you can easily access the relevant form values.

See [here](https://gitea.ivr.fi/Leppunen/runelite-dink-api/src/branch/master/handlers/dinkHandler.js) for an example project that leverages [`@fastify/multipart`](https://github.com/fastify/fastify-multipart) to read the JSON payload and screenshot file.
See [here](https://gitea.ivr.fi/Leppunen/runelite-dink-api/src/branch/master/handlers/dinkHandler.js) for an example project that leverages [`@fastify/multipart`](https://github.com/fastify/fastify-multipart) to read the JSON payload and screenshot file.
For Express, utilize the [`Multer`](https://github.com/expressjs/multer) middleware.
For Golang, utilize the [`ParseMultipartForm`](https://pkg.go.dev/net/http#Request.ParseMultipartForm) function.
For http4k, utilize the [`http4k-multipart`](https://www.http4k.org/guide/howto/use_multipart_forms/#lens_typesafe_validating_api_-_reads_all_contents_onto_diskmemory) module.
Expand Down

0 comments on commit e602c40

Please sign in to comment.