Skip to content

Commit

Permalink
πŸ› fix: use bodyparser for invitation API (#162)
Browse files Browse the repository at this point in the history
  • Loading branch information
rezk2ll authored Jan 9, 2025
1 parent 3a797f4 commit 3c8061b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/tom-server/src/invitation-api/routes/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { Router } from 'express'
import authMiddleware from '../../utils/middlewares/auth.middleware'
import InvitationApiController from '../controllers'
import invitationApiMiddleware from '../middlewares'
import bodyParser from 'body-parser'

export const PATH = '/_twake/v1/invite'

Expand All @@ -27,6 +28,8 @@ export default (
const controller = new InvitationApiController(db, logger, config)
const middleware = new invitationApiMiddleware(db, logger)

router.use(bodyParser.json())

/**
* @openapi
* components:
Expand Down

0 comments on commit 3c8061b

Please sign in to comment.