User path parameter for Delete /user/devices/:device endpoint

This commit is contained in:
Vishal Banthia
2015-12-07 18:39:06 +09:00
parent bca180d284
commit c9a9d3cb06
2 changed files with 7 additions and 14 deletions

View File

@@ -97,7 +97,7 @@ function addDeviceToUser(req, res) {
}
function deleteDeviceFromUser(req, res) {
var serial = req.body.serial
var serial = req.swagger.params.serial.value
dbapi.loadDevice(serial)
.then(function(device) {