Added logging to debug.

This commit is contained in:
Michael Mainguy 2023-08-15 09:43:30 -05:00
parent 937a2196c2
commit 6c0ed7bc25

View File

@ -4,7 +4,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'];
const apiKey = event.headers['api-key'];
console.log(apiKey.substring(-5));
const query = event.body;
console.log(query);