mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-12 08:45:42 -04:00
13 lines
427 B
JavaScript
13 lines
427 B
JavaScript
import { Router } from 'express';
|
|
import { StreamSession } from '../models/StreamSession.js';
|
|
export const streamSessionsRouter = Router();
|
|
streamSessionsRouter.get('/', async (_req, res, next) => {
|
|
try {
|
|
const docs = await StreamSession.find({}, { _id: 0, order: 0 }).sort({ order: 1 }).lean();
|
|
res.json(docs);
|
|
}
|
|
catch (err) {
|
|
next(err);
|
|
}
|
|
});
|
|
//# sourceMappingURL=streamSessions.js.map
|