mirror of
https://github.com/karl0ss/JDRssDownloader.git
synced 2025-04-27 20:03:40 +01:00
11 lines
425 B
JavaScript
11 lines
425 B
JavaScript
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() });
|
|
});
|
|
} |