Added logging to debug.

This commit is contained in:
Michael Mainguy 2023-08-15 09:38:46 -05:00
parent 6112f30363
commit 937a2196c2

View File

@ -3,6 +3,7 @@ import axios from 'axios';
export const handler: Handler = async (event: HandlerEvent, context: HandlerContext) => {
try {
console.log(JSON.stringify(event.headers));
const apiKey = event.headers['Api-Key'];
console.log(apiKey.substring(-5));
const query = event.body;