mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 06:04:05 +00:00
added the link pruning functionality
lot to correct and improve tho
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
const router = require('express').Router();
|
||||
|
||||
const { updateUser, fetchUser, createLink, removeLink, populateMissingInLink } = require('../controllers/operations');
|
||||
const { updateUser, fetchUser, createLink, removeLink, populateMissingInLink, pruneExcessInLink } = require('../controllers/operations');
|
||||
const { validate } = require('../validators');
|
||||
const { createLinkValidator, removeLinkValidator, populateMissingInLinkValidator } = require('../validators/operations');
|
||||
const { createLinkValidator, removeLinkValidator, populateMissingInLinkValidator, pruneExcessInLinkValidator } = require('../validators/operations');
|
||||
|
||||
router.put(
|
||||
"/update",
|
||||
@@ -35,4 +35,11 @@ router.put(
|
||||
populateMissingInLink
|
||||
);
|
||||
|
||||
router.put(
|
||||
"/prune/link",
|
||||
pruneExcessInLinkValidator,
|
||||
validate,
|
||||
pruneExcessInLink
|
||||
);
|
||||
|
||||
module.exports = router;
|
||||
|
||||
Reference in New Issue
Block a user