mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 08:58:13 +01:00
Update server.js
This commit is contained in:
parent
18bc3972c9
commit
34744fce50
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ var app = express();
|
||||||
app.engine("html", require("ejs").renderFile);
|
app.engine("html", require("ejs").renderFile);
|
||||||
var dislike_api = `https://returnyoutubedislikeapi.com/votes?videoId=`
|
var dislike_api = `https://returnyoutubedislikeapi.com/votes?videoId=`
|
||||||
app.set("view engine", "html");
|
app.set("view engine", "html");
|
||||||
const lyricsFinder = require("lyrics-finder");
|
const lyricsFinder = require("./src/lyrics.js");
|
||||||
const renderTemplate = async (res, req, template, data = {}) => {
|
const renderTemplate = async (res, req, template, data = {}) => {
|
||||||
res.render(
|
res.render(
|
||||||
path.resolve(`${templateDir}${path.sep}${template}`),
|
path.resolve(`${templateDir}${path.sep}${template}`),
|
||||||
|
|
Loading…
Reference in a new issue