diff --git a/packages/health-check/package.json b/packages/health-check/package.json index 317ff1b1..dd5ec469 100644 --- a/packages/health-check/package.json +++ b/packages/health-check/package.json @@ -4,7 +4,6 @@ "main": "index.js", "license": "MIT", "dependencies": { - "body-parser": "^1.19.0", "deep-object-diff": "^1.1.0", "express": "^4.17.1", "http-status-codes": "^2.1.2", diff --git a/packages/health-check/src/index.js b/packages/health-check/src/index.js index e7aff6d5..151c53b3 100644 --- a/packages/health-check/src/index.js +++ b/packages/health-check/src/index.js @@ -5,7 +5,6 @@ if (!process.env.PORTAL_URL) { } const express = require("express"); -const bodyparser = require("body-parser"); const db = require("./db"); const host = process.env.HOSTNAME || "0.0.0.0"; @@ -13,8 +12,8 @@ const port = Number(process.env.PORT) || 3100; const server = express(); -server.use(bodyparser.urlencoded({ extended: false })); -server.use(bodyparser.json()); +server.use(express.urlencoded({ extended: false })); +server.use(express.json()); server.use((req, res, next) => { db.read(); next();