mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 09:58:14 +01:00
bump version :3
This commit is contained in:
parent
d4abc2de5f
commit
232ecbf678
1 changed files with 12 additions and 8 deletions
|
@ -20,8 +20,8 @@ const {
|
||||||
|
|
||||||
const pkg = require("../../../package.json");
|
const pkg = require("../../../package.json");
|
||||||
|
|
||||||
const ver = "v23.0101-cMrvBa-stable-git";
|
const ver = "v23.0107-cMrvBa-stable-git";
|
||||||
const versionnumber = "110";
|
const versionnumber = "111";
|
||||||
|
|
||||||
const response = {
|
const response = {
|
||||||
pt_version: ver,
|
pt_version: ver,
|
||||||
|
@ -139,6 +139,7 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
});
|
});
|
||||||
|
|
||||||
app.get("/api/instances.json", async (req, res) => {
|
app.get("/api/instances.json", async (req, res) => {
|
||||||
|
try {
|
||||||
const url = `https://codeberg.org/Ashley/poketube/raw/branch/main/instances.json`;
|
const url = `https://codeberg.org/Ashley/poketube/raw/branch/main/instances.json`;
|
||||||
|
|
||||||
let f = await modules
|
let f = await modules
|
||||||
|
@ -147,6 +148,9 @@ module.exports = function (app, config, renderTemplate) {
|
||||||
.then((json) => JSON.parse(json));
|
.then((json) => JSON.parse(json));
|
||||||
|
|
||||||
res.json(f);
|
res.json(f);
|
||||||
|
} catch {
|
||||||
|
res.json("error while fetching instances");
|
||||||
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue