#49 - Mise à jour d'une fiche

This commit is contained in:
Damien Broqua 2022-08-30 15:17:14 +02:00
parent 6320764743
commit adea857666
12 changed files with 235 additions and 8 deletions

View file

@ -47,6 +47,16 @@ router
router
.route("/:itemId")
.patch(ensureLoggedIn("/connexion"), async (req, res, next) => {
try {
const albums = new Albums(req);
const data = await albums.patchOne();
sendResponse(req, res, data);
} catch (err) {
next(err);
}
})
.delete(ensureLoggedIn("/connexion"), async (req, res, next) => {
try {
const albums = new Albums(req);