diff --git a/routes/acl.js b/routes/acl.js index 36a996c..011d40c 100644 --- a/routes/acl.js +++ b/routes/acl.js @@ -237,6 +237,7 @@ router.post('/bulk-add', async (req, res) => { // Process bulk add of ACL entrie } catch (err) { log.error(`Bulk add error for card ${cardNumber}: ${err}`); results.push({ cardNumber, status: 'error', error: 'Internal server error' }); + res.status(500); } } diff --git a/views/acl-bulk-add.ejs b/views/acl-bulk-add.ejs index 8a790e8..5747cd7 100644 --- a/views/acl-bulk-add.ejs +++ b/views/acl-bulk-add.ejs @@ -162,6 +162,7 @@ }); } }); + fetch('/acl/bulk-add', { method: 'POST', headers: { 'Content-Type': 'application/json' },