From 1ca19e369f98326a4cfb5d780dc1b5cfb7559b89 Mon Sep 17 00:00:00 2001 From: Rene Cunningham Date: Fri, 15 Mar 2019 20:51:19 +1100 Subject: [PATCH] Update handler to refer to correct handler. Fixes serverless/blog#845. --- ...k-python-rest-api-serverless-lambda-dynamodb.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/posts/2017-11-15-flask-python-rest-api-serverless-lambda-dynamodb.md b/posts/2017-11-15-flask-python-rest-api-serverless-lambda-dynamodb.md index 73f69afa5..30d777af3 100644 --- a/posts/2017-11-15-flask-python-rest-api-serverless-lambda-dynamodb.md +++ b/posts/2017-11-15-flask-python-rest-api-serverless-lambda-dynamodb.md @@ -87,7 +87,7 @@ provider: functions: app: - handler: wsgi.handler + handler: wsgi_handler.handler events: - http: ANY / - http: 'ANY {proxy+}' @@ -194,7 +194,7 @@ provider: functions: app: - handler: wsgi.handler + handler: wsgi_handler.handler events: - http: ANY / - http: 'ANY {proxy+}' @@ -335,7 +335,7 @@ Let's take another look at our function configuration in `serverless.yml`: ``` functions: app: - handler: wsgi.handler + handler: wsgi_handler.handler events: - http: ANY / - http: 'ANY {proxy+}' @@ -360,16 +360,16 @@ Each function instance will have the same code, but they'll be segmented for met functions: app: - handler: wsgi.handler + handler: wsgi_handler.handler events: - http: ANY / - http: 'ANY {proxy+}' getUser: - handler: wsgi.handler + handler: wsgi_handler.handler events: - http: 'GET /users/{proxy+}' createUser: - handler: wsgi.handler + handler: wsgi_handler.handler events: - http: 'POST /users' ``` @@ -547,7 +547,7 @@ If you already have an existing Flask application, it's very easy to convert to functions: app: - handler: wsgi.handler + handler: wsgi_handler.handler events: - http: ANY / - http: 'ANY {proxy+}'