From e524bc2811f77ac5c34e6f99730706cad13510b2 Mon Sep 17 00:00:00 2001 From: Leon Liang Date: Thu, 24 Oct 2019 16:25:19 -0400 Subject: [PATCH] pass in fbAuth to getUserDetails --- functions/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/index.js b/functions/index.js index 5c728bc..119fa38 100644 --- a/functions/index.js +++ b/functions/index.js @@ -27,7 +27,7 @@ app.post("/signup", signup); // and password app.post("/login", login); -app.get("/getUser/:handle", getUserDetails); +app.get("/getUser/:handle", fbAuth, getUserDetails); // Returns all profile data of the currently logged in user app.get("/getProfileInfo", fbAuth, getProfileInfo);