in website/lambda/indexdoc-function/src/function.py [0:0]
def lambda_handler(event, context):
# Request is the response, too
request = event['Records'][0]['cf']['request']
# Check if the URI ends with '/', then append 'index.html' to it
if request['uri'].endswith('/'):
request['uri'] = request['uri'] + 'index.html'
# Return modified request
return request