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/epgSources.js
vendored
Normal file
13
server/dist/routes/epgSources.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Router } from 'express';
|
||||
import { EpgSource } from '../models/EpgSource.js';
|
||||
export const epgSourcesRouter = Router();
|
||||
epgSourcesRouter.get('/', async (_req, res, next) => {
|
||||
try {
|
||||
const docs = await EpgSource.find({}, { _id: 0 }).lean();
|
||||
res.json(docs);
|
||||
}
|
||||
catch (err) {
|
||||
next(err);
|
||||
}
|
||||
});
|
||||
//# sourceMappingURL=epgSources.js.map
|
||||
Reference in New Issue
Block a user