Skip to content

Commit

Permalink
Refactor folder structure and update MongoDB server URL
Browse files Browse the repository at this point in the history
  • Loading branch information
0vai5 committed Oct 11, 2024
1 parent bec30a6 commit 1c4b8d9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ FACEBOOK_APP_SECRET=

PUBLIC_BASENAME=http://localhost:3000/
PORT=3000
MONGO_SERVER='mongodb+srv://rovais53:[email protected]/?retryWrites=true&w=majority&appName=dashboard'
MONGO_SERVER=mongodb://127.0.0.1:27017


## How to get your GOOGLE_ID and GOOGLE_SECRET
Expand Down
20 changes: 10 additions & 10 deletions routes/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c4b8d9

Please sign in to comment.