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