mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 06:04:05 +00:00
added the link backfilling functionality
minor improvements/corrections
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user