Update server.js

This commit is contained in:
Ashley 2022-03-06 19:16:42 +03:00 committed by GitHub
parent 352e42e468
commit 36e6e15ffa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,7 +21,7 @@ var app = express();
app.engine("html", require("ejs").renderFile);
var dislike_api = `https://returnyoutubedislikeapi.com/votes?videoId=`
app.set("view engine", "html");
const lyricsFinder = require("lyrics-finder");
const lyricsFinder = require("./src/lyrics.js");
const renderTemplate = async (res, req, template, data = {}) => {
res.render(
path.resolve(`${templateDir}${path.sep}${template}`),