mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 03:17:47 +01:00
add libpoketube to main file
This commit is contained in:
parent
1b44664727
commit
1830d4f258
1 changed files with 5 additions and 2 deletions
|
@ -29,8 +29,9 @@ const fetch = require("node-fetch");
|
||||||
|
|
||||||
const { toJson } = require("xml2json");
|
const { toJson } = require("xml2json");
|
||||||
|
|
||||||
const fetcher = require("./src/fetcher.js");
|
// libpoketube
|
||||||
const api = require("./src/pt-api.js");
|
const fetcher = require("./src/libpoketube/libpoketube-fetcher.js");
|
||||||
|
const api = require("./src/libpoketube/libpoketube-core.js");
|
||||||
|
|
||||||
const templateDir = path.resolve(`${process.cwd()}${path.sep}html`);
|
const templateDir = path.resolve(`${process.cwd()}${path.sep}html`);
|
||||||
|
|
||||||
|
@ -527,6 +528,8 @@ app.get("/js/:id", (req, res) => {
|
||||||
res.sendFile(__dirname + `/js/${req.params.id}`);
|
res.sendFile(__dirname + `/js/${req.params.id}`);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
///////////// API /////////////
|
///////////// API /////////////
|
||||||
|
|
||||||
app.get("/embed/:v", async function (req, res) {
|
app.get("/embed/:v", async function (req, res) {
|
||||||
|
|
Loading…
Reference in a new issue