diff --git a/app.ts b/app.ts index 1c6c8a5..d44524e 100644 --- a/app.ts +++ b/app.ts @@ -1,6 +1,5 @@ import express from 'express'; import * as http from 'http'; -import * as bodyparser from 'body-parser'; import * as dotenv from 'dotenv'; // Router imports import {partyPlanerRouter} from './src/models/partyplaner/PartyPlaner.router'; @@ -20,7 +19,7 @@ const app: express.Application = express(); const server: http.Server = http.createServer(app); // here we are adding middleware to parse all incoming requests as JSON -app.use(bodyparser.json()); +app.use(express.json()); // Add routers app.use('/dhbw-service', dhbwServiceRouter);