mirror of
https://github.com/karl0ss/JDRssDownloader.git
synced 2025-04-27 20:03:40 +01:00
12 lines
458 B
JavaScript
12 lines
458 B
JavaScript
const fs = require("fs");
|
|
const { nextLinkCheck, nextRssRefresh } = require('.././utils')
|
|
|
|
module.exports = function (app) {
|
|
|
|
app.get("/", (req, res) => {
|
|
showListLength = JSON.parse(fs.readFileSync('shows.json')).length
|
|
rssTime = nextRssRefresh()
|
|
linkCheck = nextLinkCheck()
|
|
res.render("index", { title: "Home", showListLength: showListLength, version: global.version, rssTime: rssTime, linkCheck: linkCheck });
|
|
});
|
|
} |