Skip to content

Commit

Permalink
✨ feat: integrate invitation API (#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
rezk2ll authored Jan 9, 2025
1 parent 3c8b5d2 commit 007ac7b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/tom-server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import WellKnown from './wellKnown'
import ActiveContacts from './active-contacts-api'
import QRCode from './qrcode-api'
import MetricsRouter from './metrics-api'
import Invitation from './invitation-api'

export default class TwakeServer {
conf: Config
Expand Down Expand Up @@ -154,6 +155,12 @@ export default class TwakeServer {
this.idServer.authenticate,
this.logger
)
const invitationApi = Invitation(
this.conf,
this.idServer.db,
this.idServer.authenticate,
this.logger
)

this.endpoints.use(privateNoteApi)
this.endpoints.use(mutualRoolsApi)
Expand All @@ -164,6 +171,7 @@ export default class TwakeServer {
this.endpoints.use(activeContactsApi)
this.endpoints.use(qrCodeApi)
this.endpoints.use(metricsApi)
this.endpoints.use(invitationApi)

if (
this.conf.opensearch_is_activated != null &&
Expand Down

0 comments on commit 007ac7b

Please sign in to comment.