1
0
Fork 0
mirror of https://codeberg.org/ashley/poke.git synced 2024-11-16 23:14:39 -05:00
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 fetch = require("node-fetch");
const htmlParser = require("node-html-parser");
@ -43,7 +43,7 @@ const listener = (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) => {
@ -58,3 +58,4 @@ app.all("/*", listener);
app.listen(3000, () => {});