Skip to content

Commit

Permalink
Put headers on health-check endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-ac-martin committed Feb 23, 2018
1 parent bb31207 commit 25525ad
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ if (config.env !== 'acceptance') {
app.use(churchill(logger));
}

// add health check endpoints
app.use(require('./lib/health'));

app.use('/public', express.static(path.resolve(__dirname, './public')));

app.use(function setAssetPath(req, res, next) {
Expand Down Expand Up @@ -53,6 +50,9 @@ app.use((req, res, next) => {
next();
});

// add health check endpoints
app.use(require('./lib/health'));

require('./routes')(app);

app.use(require('./middleware/not-found')());
Expand Down

0 comments on commit 25525ad

Please sign in to comment.