Last active
April 20, 2018 20:58
Revisions
-
WaleedAshraf revised this gist
Apr 20, 2018 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,3 +1,7 @@ exports.handler = async (event) => { return sendRes(200,'Hello'); }; const sendRes = (status, body) => { var response = { statusCode: status, @@ -7,8 +11,4 @@ const sendRes = (status, body) => { body: body }; return response; }; -
WaleedAshraf revised this gist
Apr 19, 2018 . No changes.There are no files selected for viewing
-
WaleedAshraf created this gist
Apr 19, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ const sendRes = (status, body) => { var response = { statusCode: status, headers: { "Content-Type": "text/html" }, body: body }; return response; } exports.handler = async (event) => { return sendRes(200,'Hello'); };