diff --git a/.env.example b/.env.example index 092cc47..9f48c08 100644 --- a/.env.example +++ b/.env.example @@ -14,7 +14,7 @@ FACEBOOK_APP_SECRET= PUBLIC_BASENAME=http://localhost:3000/ PORT=3000 -MONGO_SERVER='mongodb+srv://rovais53:mba21345@dashboard.db2uihg.mongodb.net/?retryWrites=true&w=majority&appName=dashboard' +MONGO_SERVER=mongodb://127.0.0.1:27017 ## How to get your GOOGLE_ID and GOOGLE_SECRET diff --git a/routes/server.js b/routes/server.js index 89c3fdb..4aabe90 100644 --- a/routes/server.js +++ b/routes/server.js @@ -14,18 +14,18 @@ router.post("/register", authController.postRegister); router.post("/login", authController.postLogin); router.get("/logout", authController.getLogout); -// // Google OAuth Routes -// router.get("/auth/google", authController.authGoogle); -// router.get("/auth/google/secrets", authController.authGoogleSecrets); +// Google OAuth Routes +router.get("/auth/google", authController.authGoogle); +router.get("/auth/google/secrets", authController.authGoogleSecrets); -// // Facebook OAuth Routes -// router.get("/auth/facebook", authController.authFacebook); -// router.get("/auth/facebook/secrets", authController.authFacebookSecrets); +// Facebook OAuth Routes +router.get("/auth/facebook", authController.authFacebook); +router.get("/auth/facebook/secrets", authController.authFacebookSecrets); -// // Secret Routes -// router.get("/secrets", secretController.getSecrets); -// router.get("/submit-secret-form", secretController.getSecretForm); -// router.post("/submit-secret-form", secretController.submitSecretForm); +// Secret Routes +router.get("/secrets", secretController.getSecrets); +router.get("/submit-secret-form", secretController.getSecretForm); +router.post("/submit-secret-form", secretController.submitSecretForm); // User Routes (optional, can add more functionalities) router.get("/about", userController.getAbout);