Skip to content

Commit

Permalink
fix: cleanup linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mcstover committed Dec 20, 2023
1 parent 7e40826 commit 0006eb9
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const express = require('express');
const compression = require('compression');
const helmet = require('helmet');
const locale = require('locale');
const promBundle = require('express-prom-bundle');
const serverRoutes = require('./available-routes-middleware');
const sitemapMiddleware = require('./sitemap/middleware');
const authRouter = require('./auth-router');
Expand All @@ -19,13 +20,13 @@ const config = require('../config/selectConfig')(argv.config);
const initCache = require('./util/initCache');
const logger = require('./util/errorLogger');
const initializeTerminus = require('./util/terminusConfig');
const promBundle = require("express-prom-bundle");

const metricsMiddleware = promBundle({
includeMethod: true,
includePath: true,
includeStatusCode: true,
includeUp: true,
promClient: {
includeMethod: true,
includePath: true,
includeStatusCode: true,
includeUp: true,
promClient: {
collectDefaultMetrics: {}
}
});
Expand All @@ -40,7 +41,7 @@ const app = express();
const port = argv.port || config.server.port;

// load metrics middleware
app.use(metricsMiddleware)
app.use(metricsMiddleware);

// Use gzip on local server.
// In higher environments it's handled elsewhere
Expand Down

0 comments on commit 0006eb9

Please sign in to comment.