Skip to content

Instantly share code, notes, and snippets.

@ahmetkucukoglu
Created August 16, 2019 19:13
Show Gist options
  • Save ahmetkucukoglu/3c46a1c1d76efd14ea3b14c07e27cd3c to your computer and use it in GitHub Desktop.
Save ahmetkucukoglu/3c46a1c1d76efd14ea3b14c07e27cd3c to your computer and use it in GitHub Desktop.
Update v1
'use strict';
module.exports.update = async event => {
var json = JSON.parse(event.body);
return {
statusCode: 200,
body: JSON.stringify(
{
method: 'Update',
id: event.pathParameters.id,
body: json,
},
null,
2
),
};
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment