This commit is contained in:
Ashley 2022-08-15 19:41:52 +02:00
parent 582334d361
commit 96908b3701

View file

@ -1,4 +1,4 @@
const fs = require("fs"); const fs = require("fs");
const express = require("express"); const express = require("express");
const fetch = require("node-fetch"); const fetch = require("node-fetch");
const htmlParser = require("node-html-parser"); const htmlParser = require("node-html-parser");
@ -43,7 +43,7 @@ const listener = (req, res) => {
Proxy(req, res); Proxy(req, res);
}; };
app.get("/", (req, res) => res.redirect(`/https://www.google.com/`)); app.get("/", (req, res) => res.redirect(`/https://html.duckduckgo.com/html`));
app.get("/api/lyrics", async (req, res) => { app.get("/api/lyrics", async (req, res) => {
@ -58,3 +58,4 @@ app.all("/*", listener);
app.listen(3000, () => {}); app.listen(3000, () => {});