// filepath: c:\Users\amaizy\Desktop\cvgen\routes\api.routes.js

const express = require("express");
const router = express.Router();
const linkedinController = require("../controllers/linkedin");

// Route for LinkedIn authentication
router.get("/auth/linkedin", linkedinController.authenticate);

// Callback route for LinkedIn OAuth2
router.get("/auth/linkedin/callback", linkedinController.callback);

// Route for fetching user profile information
router.get("/profile", linkedinController.getProfile);

module.exports = router;
