mirror of
https://github.com/ClaytonWWilson/CS307-Team24.git
synced 2025-12-16 02:08:47 +00:00
Changed naming from FBAuth to fbAuth
This commit is contained in:
parent
dc498a3a1d
commit
929216c05e
@ -4,22 +4,21 @@ const app = require('express')();
|
||||
const cors = require('cors');
|
||||
app.use(cors());
|
||||
|
||||
const FBAuth = require('./util/FBAuth');
|
||||
const fbAuth = require('./util/fbAuth');
|
||||
|
||||
/*------------------------------------------------------------------*
|
||||
* handlers/users.js *
|
||||
*------------------------------------------------------------------*/
|
||||
const {getUserDetails, getProfileInfo, updateProfileInfo} = require('./handlers/users');
|
||||
|
||||
// Returns all data in the users collection
|
||||
app.get('/getUser/:handle', getUserDetails);
|
||||
|
||||
// Returns all profile data of the currently logged in user
|
||||
// TODO: Add FBAuth
|
||||
// TODO: Add fbAuth
|
||||
app.get('/getProfileInfo', getProfileInfo);
|
||||
|
||||
// Updates the currently logged in user's profile information
|
||||
// TODO: Add FBAuth
|
||||
// TODO: Add fbAuth
|
||||
app.post('/updateProfileInfo', updateProfileInfo);
|
||||
|
||||
/*------------------------------------------------------------------*
|
||||
@ -28,7 +27,7 @@ app.post('/updateProfileInfo', updateProfileInfo);
|
||||
const {putPost} = require('./handlers/post');
|
||||
|
||||
// Adds one post to the database
|
||||
app.post('/putPost', FBAuth, putPost);
|
||||
app.post('/putPost', fbAuth, putPost);
|
||||
|
||||
|
||||
exports.api = functions.https.onRequest(app);
|
||||
Loading…
Reference in New Issue
Block a user