This commit is contained in:
Akif9748 2022-09-09 21:37:48 +03:00
parent 763204b01c
commit 980deb7db2

View file

@ -33,7 +33,7 @@ app.use(async (req, res, next) => {
next();
});
app.post("me", (req, res) => res.complate(req.user))
app.post("/me", (req, res) => res.complate(req.user))
for (const file of fs.readdirSync("./routes/api/routes"))
app.use("/" + file.replace(".js", ""), require(`./routes/${file}`));