Skip to content
This repository has been archived by the owner on Sep 22, 2021. It is now read-only.

Commit

Permalink
Merge pull request #63 from watson-developer-cloud/no-header
Browse files Browse the repository at this point in the history
feat: Add a query parameter to show/hide the header
  • Loading branch information
germanattanasio authored Dec 10, 2018
2 parents d07039c + 71846da commit e1ae5ad
Show file tree
Hide file tree
Showing 5 changed files with 1,030 additions and 1,297 deletions.
4 changes: 3 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@ if (process.env.NATURAL_LANGUAGE_CLASSIFIER_IAM_APIKEY && process.env.NATURAL_LA
}

app.get('/', (req, res) => {
res.render('index');
res.render('index', {
showHeader: !(req.query.hide_header == 'true' || req.query.hide_header == '1'), // eslint-disable-line
});
});

/**
Expand Down
Loading

0 comments on commit e1ae5ad

Please sign in to comment.