Unbreak brokenness in routes/devices.js