This file contains 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 characters
{ | |
"options": [ | |
{ | |
"id": "562675f3-8675-4ba9-82ff-3aa9a3ef3d28", | |
"name": "Fedex Delivery", | |
"label": "Delivery within 2-3 working days", | |
"price": 0 | |
}, | |
{ | |
"id": "5a4f7a44-f82a-4e13-92d9-03b7494480b2", |
This file contains 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 characters
provider: | |
name: aws | |
runtime: nodejs12.x | |
environment: | |
USER_TABLE: ${self:service}-${opt-stage, self:provider.stage} | |
USER_EMAIL_TABLE: "user-email-${opt:stage, self:provider.stage}" | |
iamRoleStatements: | |
- Effect: Allow | |
Action: | |
- dynamodb:Query |
This file contains 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 characters
<script> | |
$(document).ready(function(){ | |
$('#account-update').on('submit', function(e) { | |
e.preventDefault(); | |
var formData = new FormData(); | |
// other inputs | |
//append some non-form data also | |
formData.append('name',$('input[name=name]').val()), |