16 lines
540 B
JavaScript
16 lines
540 B
JavaScript
// 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.handleCallback);
|
|
|
|
// Route for fetching user profile information
|
|
router.get("/profile", linkedinController.getProfile);
|
|
|
|
module.exports = router;
|