CognxSafeTrack commited on
Commit ·
cca255d
1
Parent(s): 5107825
fix(whatsapp): ignore trailing slashes globally for meta webhook
Browse files- apps/api/src/index.ts +2 -1
apps/api/src/index.ts
CHANGED
|
@@ -2,7 +2,8 @@ import Fastify from 'fastify';
|
|
| 2 |
import cors from '@fastify/cors';
|
| 3 |
|
| 4 |
const server = Fastify({
|
| 5 |
-
logger: true
|
|
|
|
| 6 |
});
|
| 7 |
|
| 8 |
server.register(cors);
|
|
|
|
| 2 |
import cors from '@fastify/cors';
|
| 3 |
|
| 4 |
const server = Fastify({
|
| 5 |
+
logger: true,
|
| 6 |
+
ignoreTrailingSlash: true
|
| 7 |
});
|
| 8 |
|
| 9 |
server.register(cors);
|