mirror of
https://github.com/TheBinaryNinja/tvapp2.git
synced 2026-06-12 04:25:42 -04:00
initial push from external dev branches
This commit is contained in:
13
server/dist/routes/activeStreams.js
vendored
Normal file
13
server/dist/routes/activeStreams.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Router } from 'express';
|
||||
import { ActiveStream } from '../models/ActiveStream.js';
|
||||
export const activeStreamsRouter = Router();
|
||||
activeStreamsRouter.get('/', async (_req, res, next) => {
|
||||
try {
|
||||
const docs = await ActiveStream.find({}, { _id: 0 }).lean();
|
||||
res.json(docs);
|
||||
}
|
||||
catch (err) {
|
||||
next(err);
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=activeStreams.js.map
|
||||
Reference in New Issue
Block a user