Skip to content

Commit

Permalink
feat: added support for a couple more endpoint types
Browse files Browse the repository at this point in the history
  • Loading branch information
michelleinez committed Dec 19, 2024
1 parent 7262420 commit c0f32ef
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions server/live-loan-router.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,20 @@ export default function liveLoanRouter(cache) {
});
});

// User URL Router FLSS
router.use('/recommendations/u/:id(\\d{0,})/url/:offset(\\d{0,})', async (req, res) => {
await trace('live-loan.flss.user.redirectToUrl', { resource: req.path }, async () => {
await redirectToUrl('user', cache, req, res, QUERY_TYPE.RECOMMENDATIONS);
});
});

// User IMG Router Recommendations (Legacy)
router.use('/recommendations/u/:id(\\d{0,})/img/:offset(\\d{0,})', async (req, res) => {
await trace('live-loan.recommendations.user.serveImg', { resource: req.path }, async () => {
await serveImg('user', 'legacy', cache, req, res, QUERY_TYPE.RECOMMENDATIONS);
});
});

// User IMG Router Recommendations (Kiva Classic)
router.use('/recommendations/u/:id(\\d{0,})/img2/:offset(\\d{0,})', async (req, res) => {
await trace('live-loan.recommendations.user.serveImg', { resource: req.path }, async () => {
Expand Down

0 comments on commit c0f32ef

Please sign in to comment.