Fix deprecated use of bodyParser.

This commit is contained in:
John Livingston 2021-04-16 13:46:51 +02:00
parent 9b4b17b326
commit 48851d422a

View File

@ -2,7 +2,7 @@ import type { Router, RequestHandler, Request, Response, NextFunction } from 'ex
import type { ProxyOptions } from 'express-http-proxy'
import { getBaseRouter } from '../helpers'
import * as path from 'path'
import * as bodyParser from 'body-parser'
const bodyParser = require('body-parser')
const fs = require('fs').promises
const proxy = require('express-http-proxy')