diff --git a/index.js b/index.js index 42a1671..67ba10a 100644 --- a/index.js +++ b/index.js @@ -407,7 +407,7 @@ app.put('/api/v1/admin/route/:id', (req, res) => { // Update a route // Update route const server = req.body.server || row.server; const port = req.body.port || row.port; - const auth = req.body.auth || row.auth; + const auth = req.body.apiKey || row.auth; const secret = req.body.secret || row.secret; const block_start = req.body.block_start || row.block_start; const block_length = req.body.block_length || row.block_length;