diff --git a/functions/index.js b/functions/index.js index e5a9052..e764338 100644 --- a/functions/index.js +++ b/functions/index.js @@ -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); \ No newline at end of file