{"size": 702, "ext": "js", "max_stars_repo_path": "Program/MovBook-Backend - Auth/routes/email-verifications.js", "max_stars_repo_name": "LRANUL/UOP_SE_Y3-CNET343SL_DISTRIBUTED_SYSTEMS", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "Program/MovBook-Backend - Auth/routes/email-verifications.js", "max_issues_repo_name": "LRANUL/UOP_SE_Y3-CNET343SL_DISTRIBUTED_SYSTEMS", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "Program/MovBook-Backend - Auth/routes/email-verifications.js", "max_forks_repo_name": "LRANUL/UOP_SE_Y3-CNET343SL_DISTRIBUTED_SYSTEMS", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 43.875, "max_line_length": 126, "alphanum_fraction": 0.811965812}
const express = require("express");
const router = express.Router();

// Importing email-verifications controller to retrieve the functions
const emailVerificationsController = require("../controllers/email-verifications");

// POST - Add new email verification | Route: 'BASE_URL/api/email-verifications/create'
router.post("/create", emailVerificationsController.createNewEmailVerification);

// GET - Verifying authentication pin code | 
// Route: 'BASE_URL/api/email-verifications/verify/:emailVerificationObjectId/:enteredVerificationPinCode'
router.get("/verify/:emailVerificationObjectId/:enteredVerificationPinCode", emailVerificationsController.verifyEmailAddress);


module.exports = router;
