Files
tvapp2/server/dist/routes/customPlaylists.js
2026-06-11 16:40:21 -04:00

13 lines
404 B
JavaScript

import { Router } from 'express';
import { CustomPlaylist } from '../models/CustomPlaylist.js';
export const customPlaylistsRouter = Router();
customPlaylistsRouter.get('/', async (_req, res, next) => {
try {
const docs = await CustomPlaylist.find({}, { _id: 0 }).lean();
res.json(docs);
}
catch (err) {
next(err);
}
});
//# sourceMappingURL=customPlaylists.js.map