rename to profile, users are people
This commit is contained in:
+3
-3
@@ -19,11 +19,11 @@ DB.getDB.then((DB)=>{
|
||||
});
|
||||
|
||||
router.get("/:id", async (req, res) => {
|
||||
let userid = req.params.id;
|
||||
let user = await DB.getProfile(userid);
|
||||
let profileId = req.params.id;
|
||||
let profile = await DB.getProfile(profileId);
|
||||
return res.json({
|
||||
status: "ok",
|
||||
user
|
||||
... profile
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user