Test
This commit is contained in:
parent
3440a66f6d
commit
ddb5e6f976
1 changed files with 8 additions and 4 deletions
|
|
@ -2,15 +2,19 @@
|
||||||
|
|
||||||
const express = require("express");
|
const express = require("express");
|
||||||
const router = express.Router();
|
const router = express.Router();
|
||||||
const linkedinController = require("../controllers/linkedin");
|
const {
|
||||||
|
authenticateUser,
|
||||||
|
handleCallback,
|
||||||
|
getUserProfile,
|
||||||
|
} = require("../controllers/linkedin");
|
||||||
|
|
||||||
// Route for LinkedIn authentication
|
// Route for LinkedIn authentication
|
||||||
router.get("/auth/linkedin", linkedinController.authenticate);
|
router.get("/auth/linkedin", authenticateUser);
|
||||||
|
|
||||||
// Callback route for LinkedIn OAuth2
|
// Callback route for LinkedIn OAuth2
|
||||||
router.get("/auth/linkedin/callback", linkedinController.handleCallback);
|
router.get("/auth/linkedin/callback", handleCallback);
|
||||||
|
|
||||||
// Route for fetching user profile information
|
// Route for fetching user profile information
|
||||||
router.get("/profile", linkedinController.getProfile);
|
router.get("/profile", getUserProfile);
|
||||||
|
|
||||||
module.exports = router;
|
module.exports = router;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue