mirror of
https://github.com/Akif9748/akf-forum.git
synced 2024-11-22 20:10:40 +03:00
fix
This commit is contained in:
parent
763204b01c
commit
980deb7db2
1 changed files with 1 additions and 1 deletions
|
@ -33,7 +33,7 @@ app.use(async (req, res, next) => {
|
||||||
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"))
|
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}`));
|
||||||
|
|
Loading…
Reference in a new issue