Merge pull request #385 from shocknet/fix/delete-not-working
process delete like get
This commit is contained in:
commit
989138787d
1 changed files with 1 additions and 1 deletions
|
|
@ -339,7 +339,7 @@ module.exports = async (
|
||||||
return res.status(401).json(error)
|
return res.status(401).json(error)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.method === 'GET') {
|
if (req.method === 'GET' || req.method === 'DELETE') {
|
||||||
return next()
|
return next()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue