mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-12 15:05:41 -04:00
initial push from external dev branches
This commit is contained in:
13
server/dist/routes/customPlaylists.js
vendored
Normal file
13
server/dist/routes/customPlaylists.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
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
|
||||
Reference in New Issue
Block a user