Merge pull request #1295 from spotify/freben/204-loc-del
return 204 when there's no response data
This commit is contained in:
@@ -110,7 +110,7 @@ export async function createRouter(
|
||||
.delete('/locations/:id', async (req, res) => {
|
||||
const { id } = req.params;
|
||||
await locationsCatalog.removeLocation(id);
|
||||
res.status(200).send();
|
||||
res.status(204).send();
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user