mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-16 10:18:48 +00:00
Start of the edit profile functions.
This commit is contained in:
parent
709af8007d
commit
bcdd452aa8
@ -75,4 +75,23 @@ app.post('/postUser', (req, res) => {
|
||||
});
|
||||
});
|
||||
|
||||
// Returns all profile data of the currently logged in user
|
||||
app.get('getProfileInfo', (req, res) => {
|
||||
|
||||
});
|
||||
|
||||
// Updates the currently logged in user's profile information
|
||||
app.post('/updateProfileInfo', FBAuth, (req, res) => {
|
||||
const profileData = {
|
||||
handle: req.user.handle,
|
||||
firstName: req.body.firstName,
|
||||
lastName: req.body.lastName,
|
||||
imageUrl: req.body.imageUrl,
|
||||
};
|
||||
|
||||
return res.status(200).json(profileData);
|
||||
|
||||
|
||||
});
|
||||
|
||||
exports.api = functions.https.onRequest(app);
|
||||
Loading…
Reference in New Issue
Block a user