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