Skip to content

Commit 433cd3a

Browse files
committed
documentation started
1 parent d6ef915 commit 433cd3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routes/user.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ router.route("/register").post((req, res) => {
6262
.save()
6363
.then(() => {
6464
console.log("user registered");
65-
res.status(200).json("ok");
65+
res.status(200).json({ msg: "User Successfully Registered" });
6666
})
6767
.catch((err) => {
6868
res.status(403).json({ msg: err });

0 commit comments

Comments
 (0)