linted and changed configFile to const (kept forgetting)
This commit is contained in:
parent
f5a621b6e1
commit
3becce1feb
2 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
|
|
|
@ -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, () => {
|
||||
|
|
Loading…
Reference in a new issue