cvgen/routes/api.routes.js
2025-09-09 15:30:31 +02:00

17 lines
444 B
JavaScript

// filepath: c:\Users\amaizy\Desktop\cvgen\routes\api.routes.js
const express = require("express");
const router = express.Router();
const {
authenticateUser,
handleCallback,
getUserProfile,
} = require("../controllers/linkedin");
// Route for LinkedIn authentication
router.get("/auth/linkedin", authenticateUser);
// Callback route for LinkedIn OAuth2
router.get("/auth/linkedin/callback", handleCallback);
module.exports = router;