set ignoreTrailingSlash to true in fastify

This commit is contained in:
Maidul Islam
2024-01-17 12:24:20 -05:00
committed by Akhil Mohan
parent 6b7b888fb4
commit 65d3038414

View File

@@ -34,7 +34,8 @@ export const main = async ({ db, smtp, logger, queue }: TMain) => {
const appCfg = getConfig();
const server = fasitfy({
logger,
trustProxy: true
trustProxy: true,
ignoreTrailingSlash: true,
}).withTypeProvider<ZodTypeProvider>();
server.setValidatorCompiler(validatorCompiler);