Skip to content

Instantly share code, notes, and snippets.

@cyrilletuzi
Last active Aug 1, 2017
Embed
What would you like to do?
function angularRouter(req, res) {
res.render('index', {
req,
res,
providers: [{
provide: 'serverUrl',
useValue: `${req.protocol}://${req.get('host')}`
}]
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment