Shift unlock and removeReview functions to use PUT

This commit is contained in:
G.Ambatte committed 2024-06-08 20:00:10 +12:00
1 parent 7830c7e2eb
commit 44f2e38387
2 files changed
+3 -3

No files matched your search

+2 -2
View File
@@ -186,7 +186,7 @@ router.post('/admin/lock/:id', mw.adminOnly, async (req, res)=>{
}
});
router.get('/admin/unlock/:id', mw.adminOnly, async (req, res)=>{
router.put('/admin/unlock/:id', mw.adminOnly, async (req, res)=>{
try {
const filter = {
shareId : req.params.id
@@ -260,7 +260,7 @@ router.put('/admin/lock/review/request/:id', async (req, res)=>{
}
});
router.get('/admin/lock/review/remove/:id', mw.adminOnly, async (req, res)=>{
router.put('/admin/lock/review/remove/:id', mw.adminOnly, async (req, res)=>{
try {
const filter = {
shareId : req.params.id,