Skip to content

Instantly share code, notes, and snippets.

@lohmann
Forked from jcdalton2201/saveInfo
Last active August 28, 2015 12:22
Show Gist options
  • Save lohmann/8894e66b199d02128515 to your computer and use it in GitHub Desktop.
Save lohmann/8894e66b199d02128515 to your computer and use it in GitHub Desktop.

Revisions

  1. @jcdalton2201 jcdalton2201 revised this gist Feb 13, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion saveInfo
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,4 @@ var saveInventory = function(req, res) {
    console.log(body);
    }

    server.get('/inventory/:id', saveInventory);
    server.post('/inventory/:id', saveInventory);
  2. @jcdalton2201 jcdalton2201 created this gist Feb 13, 2015.
    6 changes: 6 additions & 0 deletions saveInfo
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    var saveInventory = function(req, res) {
    var body = req.body
    console.log(body);
    }

    server.get('/inventory/:id', saveInventory);