diff --git a/lib/plugins/create/templates/spotinst-nodejs/handler.js b/lib/plugins/create/templates/spotinst-nodejs/handler.js index 71b1474f1..56ada204c 100644 --- a/lib/plugins/create/templates/spotinst-nodejs/handler.js +++ b/lib/plugins/create/templates/spotinst-nodejs/handler.js @@ -2,24 +2,24 @@ * * Implement your function here. * The function will get the request as a parameter with query/body properties: - * var queryparams = req.query; - * var body = req.body; + * var queryparams = req.query; + * var body = req.body; * * The function should return a Promise that resolves with the following structure: - * resolve({ - * statusCode: 200, - * body: '{"hello":"from NodeJS4.8 function"}', - * headers: {"Content-Type": "application/json"} - * }) + * resolve({ + * statusCode: 200, + * body: '{"hello":"from NodeJS4.8 function"}', + * headers: {"Content-Type": "application/json"} + * }) * */ exports.main = function main (req, res) { - // The function should return a Promise. - return new Promise(function(resolve, reject){ - return resolve({ - statusCode: 200, - body: `hello ${req.query.name || "world"}!` - }); - }); + // The function should return a Promise. + return new Promise(function(resolve, reject){ + return resolve({ + statusCode: 200, + body: `hello ${req.query.name || "world"}!` + }); + }); }; diff --git a/lib/plugins/create/templates/spotinst-nodejs/serverless.yml b/lib/plugins/create/templates/spotinst-nodejs/serverless.yml index 66b07ffc7..5b6231275 100644 --- a/lib/plugins/create/templates/spotinst-nodejs/serverless.yml +++ b/lib/plugins/create/templates/spotinst-nodejs/serverless.yml @@ -25,7 +25,6 @@ functions: memory: 128 timeout: 30 - # extend the framework using plugins listed here: # https://github.com/serverless/plugins plugins: diff --git a/lib/plugins/create/templates/spotinst-python/serverless.yml b/lib/plugins/create/templates/spotinst-python/serverless.yml index bab61d65d..58cd69d69 100644 --- a/lib/plugins/create/templates/spotinst-python/serverless.yml +++ b/lib/plugins/create/templates/spotinst-python/serverless.yml @@ -25,7 +25,6 @@ functions: memory: 128 timeout: 30 - # extend the framework using plugins listed here: # https://github.com/serverless/plugins plugins: