Skip to content

Commit

Permalink
feat: add option ignoreTrailingSlash in fastify adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Ihar committed May 8, 2024
1 parent ac07103 commit 84bbfd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api-gateway/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import fastifyMultipart from '@fastify/multipart';
const PORT = process.env.PORT || 3002;

Promise.all([
NestFactory.create<NestFastifyApplication>(AppModule, new FastifyAdapter(), {
NestFactory.create<NestFastifyApplication>(AppModule, new FastifyAdapter({ ignoreTrailingSlash: true }), {
rawBody: true,
bodyParser: false,
}),
Expand Down

0 comments on commit 84bbfd2

Please sign in to comment.