Skip to content

Commit

Permalink
Adds the fastify-formbody plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
claudioc committed Feb 17, 2024
1 parent 9cd252d commit 152a65b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
14 changes: 12 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fastify-htmx-ts-starter-kit",
"version": "1.4.0",
"version": "1.5.0",
"description": "Opinionated, no nonsense starter kit for a simple Fastify API + JSX + HTMX application",
"main": "./dist/app.js",
"repository": {
Expand Down Expand Up @@ -63,6 +63,7 @@
"typescript": "^5.3.2"
},
"dependencies": {
"@fastify/formbody": "^7.4.0",
"@fastify/helmet": "^11.1.1",
"@fastify/static": "^6.12.0",
"chota": "^0.9.2",
Expand Down
2 changes: 2 additions & 0 deletions server/lib/bootstrap.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import Fastify from 'fastify';
import helmet from '@fastify/helmet';
import staticServe from '@fastify/static';
import fastifyFormbody from '@fastify/formbody';
import path from 'path';
import router from './router';
import { ASSETS_MOUNT_POINT, ASSETS_PATH } from './constants.js';
Expand All @@ -26,6 +27,7 @@ const app = Fastify({
});

app
.register(fastifyFormbody)
.register(jsxRenderer)
.register(helmet, {
contentSecurityPolicy: {
Expand Down

0 comments on commit 152a65b

Please sign in to comment.