Added me path

This commit is contained in:
Akif9748 2022-09-09 21:36:55 +03:00
parent 40d5f57162
commit 70386f4088

View file

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