CognxSafeTrack commited on
Commit ·
9d2d3b2
1
Parent(s): 31e6d9a
Fix gateway forwarding authorization: use Bearer token instead of x-admin-key
Browse files
apps/api/src/routes/whatsapp.ts
CHANGED
|
@@ -122,7 +122,7 @@ export async function whatsappRoutes(fastify: FastifyInstance) {
|
|
| 122 |
method: 'POST',
|
| 123 |
headers: {
|
| 124 |
'Content-Type': 'application/json',
|
| 125 |
-
'
|
| 126 |
},
|
| 127 |
body: request.body ? JSON.stringify(request.body) : ''
|
| 128 |
}).catch(err => {
|
|
|
|
| 122 |
method: 'POST',
|
| 123 |
headers: {
|
| 124 |
'Content-Type': 'application/json',
|
| 125 |
+
'Authorization': `Bearer ${process.env.ADMIN_API_KEY || ''}`
|
| 126 |
},
|
| 127 |
body: request.body ? JSON.stringify(request.body) : ''
|
| 128 |
}).catch(err => {
|