import site
site.addsitedir('./packages')
import json
import datetime
import boto3
import os


def handler(event, context):
    params = event.get('multiValueQueryStringParameters', {})
    path = event.get('path', '').strip('/')
    requestContext = event.get('requestContext', {})
    stage = requestContext.get('stage', '')
    stageVariables = event.get('stageVariables', {})
    httpMethod = event.get('httpMethod', None)
    envVar1 = os.getenv('var1')
    if httpMethod == 'POST':
        body = event.get('body', '')
    else:
        body = ''
    action = ''
    if path == '':
        if httpMethod == 'GET':
            action = 'GET/'
        elif httpMethod == 'POST':
            action = 'POST/'
    elif path == 'preview':
        if httpMethod == 'GET':
            action = 'GET/preview'
    data = {'output': 'Hello World1', 'timestamp': datetime.datetime.utcnow
        ().isoformat(), 'params': params, 'path': path, 'stage': stage,
        'stageVariables': stageVariables, 'httpMethod': httpMethod, 'body':
        body, 'action': action, 'var1': envVar1}
    return {'statusCode': 200, 'body': json.dumps(data), 'headers': {
        'Content-Type': 'application/json'}}

6d4668706828d563126f689dd0b8e7b705a20874
<mask token>

<mask token>


def handler(event, context):
    params = event.get('multiValueQueryStringParameters', {})
    path = event.get('path', '').strip('/')
    requestContext = event.get('requestContext', {})
    stage = requestContext.get('stage', '')
    stageVariables = event.get('stageVariables', {})
    httpMethod = event.get('httpMethod', None)
    envVar1 = os.getenv('var1')
    if httpMethod == 'POST':
        body = event.get('body', '')
    else:
        body = ''
    action = ''
    if path == '':
        if httpMethod == 'GET':
            action = 'GET/'
        elif httpMethod == 'POST':
            action = 'POST/'
    elif path == 'preview':
        if httpMethod == 'GET':
            action = 'GET/preview'
    data = {'output': 'Hello World1', 'timestamp': datetime.datetime.utcnow
        ().isoformat(), 'params': params, 'path': path, 'stage': stage,
        'stageVariables': stageVariables, 'httpMethod': httpMethod, 'body':
        body, 'action': action, 'var1': envVar1}
    return {'statusCode': 200, 'body': json.dumps(data), 'headers': {
        'Content-Type': 'application/json'}}

<mask token>
site.addsitedir('./packages')
<mask token>


def handler(event, context):
    params = event.get('multiValueQueryStringParameters', {})
    path = event.get('path', '').strip('/')
    requestContext = event.get('requestContext', {})
    stage = requestContext.get('stage', '')
    stageVariables = event.get('stageVariables', {})
    httpMethod = event.get('httpMethod', None)
    envVar1 = os.getenv('var1')
    if httpMethod == 'POST':
        body = event.get('body', '')
    else:
        body = ''
    action = ''
    if path == '':
        if httpMethod == 'GET':
            action = 'GET/'
        elif httpMethod == 'POST':
            action = 'POST/'
    elif path == 'preview':
        if httpMethod == 'GET':
            action = 'GET/preview'
    data = {'output': 'Hello World1', 'timestamp': datetime.datetime.utcnow
        ().isoformat(), 'params': params, 'path': path, 'stage': stage,
        'stageVariables': stageVariables, 'httpMethod': httpMethod, 'body':
        body, 'action': action, 'var1': envVar1}
    return {'statusCode': 200, 'body': json.dumps(data), 'headers': {
        'Content-Type': 'application/json'}}

import site
site.addsitedir('./packages')
import json
import datetime
import boto3
import os


def handler(event, context):
    params = event.get('multiValueQueryStringParameters', {})
    path = event.get('path', '').strip('/')
    requestContext = event.get('requestContext', {})
    stage = requestContext.get('stage', '')
    stageVariables = event.get('stageVariables', {})
    httpMethod = event.get('httpMethod', None)
    envVar1 = os.getenv('var1')
    if httpMethod == 'POST':
        body = event.get('body', '')
    else:
        body = ''
    action = ''
    if path == '':
        if httpMethod == 'GET':
            action = 'GET/'
        elif httpMethod == 'POST':
            action = 'POST/'
    elif path == 'preview':
        if httpMethod == 'GET':
            action = 'GET/preview'
    data = {'output': 'Hello World1', 'timestamp': datetime.datetime.utcnow
        ().isoformat(), 'params': params, 'path': path, 'stage': stage,
        'stageVariables': stageVariables, 'httpMethod': httpMethod, 'body':
        body, 'action': action, 'var1': envVar1}
    return {'statusCode': 200, 'body': json.dumps(data), 'headers': {
        'Content-Type': 'application/json'}}
