get playlist details (first 100 tracks)

This commit is contained in:
2023-09-24 23:45:05 -07:00
parent 3bb88977ec
commit 10e9020f31
5 changed files with 103 additions and 15 deletions

View File

@@ -1,6 +1,6 @@
const router = require('express').Router();
const { getUserPlaylists } = require('../controllers/playlists');
const { getUserPlaylists, getUserPlaylist } = require('../controllers/playlists');
const { isAuthenticated } = require('../middleware/authCheck');
const validator = require("../validators");
@@ -10,5 +10,11 @@ router.get(
validator.validate,
getUserPlaylists
);
router.get(
"/details",
isAuthenticated,
validator.validate,
getUserPlaylist
);
module.exports = router;