send move req to server
This commit is contained in:
+3
-2
@@ -113,9 +113,10 @@ app.delete('/box/:boxId/item/:itemId', async (request, response) => {
|
||||
});
|
||||
|
||||
//move item
|
||||
app.post('/box/:boxIdSource/item/:itemId/to/:boxIdTarget', async (request, response) => {
|
||||
const sourceBoxID = request.params.boxIdSource;
|
||||
app.post('/box/item/:itemId/:boxIdTarget', async (request, response) => {
|
||||
const itemID = request.params.itemId;
|
||||
const targetBoxID = request.params.boxIdTarget;
|
||||
response.send({itemID,targetBoxID});
|
||||
/*...*/
|
||||
})
|
||||
/*------------/CONTROLLER------------*/
|
||||
|
||||
Reference in New Issue
Block a user