Merge pull request #1295 from spotify/freben/204-loc-del

return 204 when there's no response data
This commit is contained in:
Fredrik Adelöw
2020-06-15 11:49:36 +02:00
committed by GitHub
@@ -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();
});
}