From fa063777d2d5690692fa500327c33cbeacac02ba Mon Sep 17 00:00:00 2001 From: Ashley Date: Wed, 16 Nov 2022 11:27:48 +0100 Subject: [PATCH] add version deamons --- src/libpoketube/init/pages-api.js | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/src/libpoketube/init/pages-api.js b/src/libpoketube/init/pages-api.js index 87db2cdc..46d41b6e 100644 --- a/src/libpoketube/init/pages-api.js +++ b/src/libpoketube/init/pages-api.js @@ -20,6 +20,19 @@ const { const pkg = require("../../../package.json"); +const ver = "v22.1116-co21-stable" + +const response = { + pt_version: ver, + packages: { + libpt: version, + node: process.version, + v8: process.versions.v8, + }, + process: process.versions, + dependencies: pkg.dependencies, +}; + module.exports = function (app, config, renderTemplate) { app.get("/embed/:v", async function (req, res) { var e = req.query.e; @@ -113,17 +126,6 @@ module.exports = function (app, config, renderTemplate) { }); app.get("/api/version.json", async (req, res) => { - const response = { - pt_version: "v22.1115-abU9-stable", - packages: { - libpt: version, - node: process.version, - v8: process.versions.v8, - }, - process: process.versions, - dependencies: pkg.dependencies, - }; - res.json(response); }); @@ -138,3 +140,5 @@ module.exports = function (app, config, renderTemplate) { res.json(f); }); }; + +module.exports.api = ver;