mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Merge pull request #100 from Dahlgren/bugfix/mods-endpoints-send-status
Add missing send response to mods requests
This commit is contained in:
commit
a880c48523
@ -9,12 +9,12 @@ module.exports = function (modsManager) {
|
||||
|
||||
router.post('/', function (req, res) {
|
||||
modsManager.download(req.body.name)
|
||||
res.status(204)
|
||||
res.status(204).send()
|
||||
})
|
||||
|
||||
router.put('/:mod', function (req, res) {
|
||||
modsManager.download(req.params.mod)
|
||||
res.status(204)
|
||||
res.status(204).send()
|
||||
})
|
||||
|
||||
router.delete('/:mod', function (req, res) {
|
||||
@ -22,14 +22,14 @@ module.exports = function (modsManager) {
|
||||
if (err) {
|
||||
res.status(500).send(err)
|
||||
} else {
|
||||
res.status(204)
|
||||
res.status(204).send()
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
router.post('/refresh', function (req, res) {
|
||||
modsManager.updateMods()
|
||||
res.status(204)
|
||||
res.status(204).send()
|
||||
})
|
||||
|
||||
router.post('/search', function (req, res) {
|
||||
|
Loading…
Reference in New Issue
Block a user