Added logging to debug.
This commit is contained in:
parent
6112f30363
commit
937a2196c2
@ -3,6 +3,7 @@ import axios from 'axios';
|
|||||||
|
|
||||||
export const handler: Handler = async (event: HandlerEvent, context: HandlerContext) => {
|
export const handler: Handler = async (event: HandlerEvent, context: HandlerContext) => {
|
||||||
try {
|
try {
|
||||||
|
console.log(JSON.stringify(event.headers));
|
||||||
const apiKey = event.headers['Api-Key'];
|
const apiKey = event.headers['Api-Key'];
|
||||||
console.log(apiKey.substring(-5));
|
console.log(apiKey.substring(-5));
|
||||||
const query = event.body;
|
const query = event.body;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user