Skip to content

Instantly share code, notes, and snippets.

@hovissimo
Created September 30, 2022 05:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hovissimo/797f502c44cca99b5d0fc4ed6d8d375a to your computer and use it in GitHub Desktop.
Save hovissimo/797f502c44cca99b5d0fc4ed6d8d375a to your computer and use it in GitHub Desktop.
Enhance /foo/bar/$key.mjs
{
"version": "2.0",
"routeKey": "ANY /{proxy+}",
"rawPath": "/foo/bar/baz",
"rawQueryString": "",
"cookies": [
"_idx=eyJhbGciOiJkaXIiLCJlbmMiOiJBMTI4R0NNIn0..YNN--0oPCWn6ChdD.AXLDL_cMMBOSRppGv2xjlppy1PkdESx3bb99IlEvKrhnJaI7I6VPniFArldGWRNldz_YNo_ilEHhchOwKk3et1C5Xnqjo4WplXv7ItyK6STOisdYfnMmEgGVFP0AUqTZNMDdpvC-c8mvsQvD0VUGeKd1ATNGZFbyDA._M1PRjCs26cccaRM0omyMw"
],
"headers": {
"host": "localhost:3333",
"user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:104.0) Gecko/20100101 Firefox/104.0",
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,*/*;q=0.8",
"accept-language": "en-US,en;q=0.5",
"accept-encoding": "gzip, deflate, br",
"dnt": "1",
"upgrade-insecure-requests": "1",
"sec-fetch-dest": "document",
"sec-fetch-mode": "navigate",
"sec-fetch-site": "none",
"sec-fetch-user": "?1"
},
"requestContext": {
"http": {
"method": "GET",
"path": "/foo/bar/baz"
},
"routeKey": "ANY /{proxy+}"
},
"pathParameters": {
"proxy": "foo/bar/baz"
},
"isBase64Encoded": false,
"session": {
"iat": 1664516108,
"code_verifier": "WJJuZ5WLjutBCbxdUNEOgXlLsBQQQHrUZ1CJpWrroDE",
"currentUserKey": "101848928070070874207"
},
"httpMethod": "GET",
"body": {},
"queryStringParameters": {},
"resource": "/{proxy+}",
"path": "/foo/bar/baz",
"method": "GET",
"params": {
"proxy": "foo/bar/baz"
},
"query": {}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment