From 929216c05e75ef2aeac37ba081b215a06ba0557d Mon Sep 17 00:00:00 2001 From: Clayton Wilson Date: Sun, 29 Sep 2019 22:06:51 -0400 Subject: [PATCH] Changed naming from FBAuth to fbAuth --- functions/index.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) 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