API-10: Adding PartyPlaner register endpoint #3

Merged
Paddy merged 3 commits from API-10 into master 2021-08-20 11:26:38 +00:00
Showing only changes of commit d3bf8d1bd9 - Show all commits

3
app.ts
View File

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