From 4767098055ed6e2ebc049e49dad65583314acdc8 Mon Sep 17 00:00:00 2001 From: RCH Date: Sun, 21 Apr 2019 15:05:16 -0500 Subject: [PATCH] Update 2017-10-04-serverless-express-rest-api.md to fix route/staging issue and bump Node version 1st part of tutorial fails to produce a usable endpoint, because the 'dev' stage is expected as part of the Express route as '/dev'. This is a known issue with serverless-http https://github.com/dougmoscrop/serverless-http/issues/68. --- posts/2017-10-04-serverless-express-rest-api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/posts/2017-10-04-serverless-express-rest-api.md b/posts/2017-10-04-serverless-express-rest-api.md index f9931f7d7..8ff45690a 100644 --- a/posts/2017-10-04-serverless-express-rest-api.md +++ b/posts/2017-10-04-serverless-express-rest-api.md @@ -56,7 +56,7 @@ const serverless = require('serverless-http'); const express = require('express') const app = express() -app.get('/', function (req, res) { +app.get('/dev', function (req, res) { res.send('Hello World!') }) @@ -76,7 +76,7 @@ service: my-express-application provider: name: aws - runtime: nodejs6.10 + runtime: nodejs8.10 stage: dev region: us-east-1