Skip to content

Commit

Permalink
fix(javascript/fastify): fixed body parser.
Browse files Browse the repository at this point in the history
  • Loading branch information
KostyaTretyak committed Nov 23, 2024
1 parent 19027d3 commit 30e1ba4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions javascript/fastify-bun/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import fastify from 'fastify';
const app = fastify();
app.register(await import('@fastify/formbody'));

app.get('/', function (request, reply) {
reply.send();
Expand Down
1 change: 1 addition & 0 deletions javascript/fastify-bun/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"type": "module",
"dependencies": {
"@fastify/formbody": "^8.0.1",
"fastify": "~5.1.0"
}
}
1 change: 1 addition & 0 deletions javascript/fastify/app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const fastify = require('fastify');
const app = fastify();
app.register(require('@fastify/formbody'));

app.get('/', function (request, reply) {
reply.send();
Expand Down
1 change: 1 addition & 0 deletions javascript/fastify/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"dependencies": {
"@fastify/formbody": "^8.0.1",
"fastify": "~5.1.0"
}
}

0 comments on commit 30e1ba4

Please sign in to comment.