mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-10 11:58:26 +01:00
add version deamons
This commit is contained in:
parent
e3f15542b1
commit
374d77970a
1 changed files with 15 additions and 11 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue