return 204 when there's no response data

This commit is contained in:
Fredrik Adelöw
2020-06-15 11:34:46 +02:00
parent 7b888f5bfc
commit 92774dc9f6
@@ -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();
});
}