added the link backfilling functionality

minor improvements/corrections
This commit is contained in:
2024-08-01 23:15:38 +05:30
parent 149965a15b
commit b20b15a29a
10 changed files with 285 additions and 71 deletions

View File

@@ -1,19 +1,16 @@
const router = require('express').Router();
const { getUserPlaylists, getPlaylistDetails } = require('../controllers/playlists');
const { isAuthenticated } = require('../middleware/authCheck');
const { getPlaylistDetailsValidator } = require('../validators/playlists');
const { validate } = require("../validators");
router.get(
"/me",
isAuthenticated,
getUserPlaylists
);
router.get(
"/details",
isAuthenticated,
getPlaylistDetailsValidator,
validate,
getPlaylistDetails