1
0
mirror of https://github.com/karl0ss/JDRssDownloader.git synced 2025-05-04 06:23:42 +01:00

11 lines
425 B
JavaScript
Raw Normal View History

const fs = require("fs");
const { nextLinkCheck, nextRssRefresh } = require('.././utils')
module.exports = function (app) {
app.get("/", (req, res) => {
showListLength = JSON.parse(fs.readFileSync('config.json')).Shows.length
a =
res.render("index", { title: "Home", showListLength: showListLength, version: global.version, rssTime: nextRssRefresh(), linkCheck: nextLinkCheck() });
});
}