mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-11 20:15:41 -04:00
13 lines
404 B
JavaScript
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
|