Skip to content

Commit

Permalink
Add legacy route for people (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
williambelle authored May 1, 2024
1 parent 22229a0 commit 427f29a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const configApi = require('./configs/api.config');

const cseRouter = require('./routes/cse.route');
const peopleRouter = require('./routes/people.route');
const legacyPeopleRouter = require('./routes/legacy.people.route');
const unitRouter = require('./routes/unit.route');
const semanticRouter = require('./routes/semantic.route');
const addressRouter = require('./routes/address.route');
Expand Down Expand Up @@ -42,6 +43,7 @@ if (configApi.enableCse) {
// People
if (configApi.enableLdap) {
app.use('/api/ldap', peopleRouter);
app.use('/ws', legacyPeopleRouter);
}

// Address
Expand Down
8 changes: 8 additions & 0 deletions src/routes/legacy.people.route.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
const express = require('express');
const router = express.Router();

const peopleController = require('../controllers/people.controller');

router.get('/genericSearch', peopleController.getCsv);

module.exports = router;

0 comments on commit 427f29a

Please sign in to comment.