added greeting with context logic

This commit is contained in:
2025-10-25 15:59:52 +02:00
parent 770025f8fc
commit a0bdf5539c
5 changed files with 45 additions and 15 deletions

View File

@@ -432,7 +432,7 @@ router.delete("/deleteUser/:id", authenticate, async (req, res) => {
});
router.get("/verifyToken", authenticate, async (req, res) => {
res.status(200).json({ message: "Token is valid" });
res.status(200).json({ message: "Token is valid", user: req.user });
});
router.post("/editUser/:id", authenticate, async (req, res) => {