-
Notifications
You must be signed in to change notification settings - Fork 872
Closed
Description
Hi, I'm using Express 4,
In normal way, I can do the following
app.get('/v1/users/:username', function(request, response, next) {
var username = request.params.username;
findUserByUsername(username, function(error, user) {
if (error) return next(error);
return response.render('user', user);
});
});
But how do I execute custom logic if I'm using proxy, let's say I want to manipulate some of the data before response to the user? Is there a good pattern to do that with this middleware ?
app.use('/api', proxy({target: 'http://www.example.org', changeOrigin: true}));
ortonomy, sameenzm, elliotleelewis, Morb0 and elpddevsameenzm and alexkamhk01
Metadata
Metadata
Assignees
Labels
No labels