forked from dbroqua/MusicTopus
#49 - Mise à jour d'une fiche
This commit is contained in:
parent
6320764743
commit
adea857666
12 changed files with 235 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue