Skip to content

Instantly share code, notes, and snippets.

View pon's full-sized avatar

Peter Scarlatta pon

  • San Francisco, CA
View GitHub Profile
create = {
handler: function(request, reply) {
return new Address().save({
name: request.payload.name,
address_line1: request.payload.address_line1
}).then(function(model) {
return new Address({
'id': model.id
}).fetch().then(function(model) {
return reply(model);