1
0
Fork 0

linted and changed configFile to const (kept forgetting)

This commit is contained in:
grumbulon 2022-04-05 14:59:01 -04:00
parent f5a621b6e1
commit 3becce1feb
2 changed files with 3 additions and 4 deletions

View file

@ -2,10 +2,9 @@ import { readConfig } from "./config.js";
import downloadFromBooru from "./download.js";
import { search } from "booru";
let configFile = "./config.json";
const configFile = "./config.json";
export function getFromBooru() {
readConfig(configFile, (err, config) => {
if (err) {
console.log(err);

View file

@ -11,9 +11,9 @@ app.get("/", (req, res) => {
});
app.get("/waifu", (req, res) => {
const tags = req.query.tags.split(',');
const tags = req.query.tags.split(",");
userDefinedTags(tags);
res.sendFile("src/public/assets/waifu.png", { root: "." })
res.sendFile("src/public/assets/waifu.png", { root: "." });
});
app.listen(port, () => {