Closed luckypur closed 8 years ago
What i am trying to do is check user agent string and if it is a BOT then returning some html with meta tags.
myResource.read.fetch.after(function (req, res, context) { if (req.useragent.is_bot) { res.render('path/to/some/template', {someData : context.instance}) context.skip() } context.continue() });
Its giving app.render is not a function Any suggestion or any alternative way Or res.render just not supposed to work in milestones...!
app.render is not a function
i was overriding req.app property somewhere in nested routes.
What i am trying to do is check user agent string and if it is a BOT then returning some html with meta tags.
Its giving
app.render is not a function
Any suggestion or any alternative way Or res.render just not supposed to work in milestones...!