Skip to content

Commit 007ac7b

Browse files
authored
✨ feat: integrate invitation API (#159)
1 parent 3c8b5d2 commit 007ac7b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/tom-server/src/index.ts

+8
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import WellKnown from './wellKnown'
2323
import ActiveContacts from './active-contacts-api'
2424
import QRCode from './qrcode-api'
2525
import MetricsRouter from './metrics-api'
26+
import Invitation from './invitation-api'
2627

2728
export default class TwakeServer {
2829
conf: Config
@@ -154,6 +155,12 @@ export default class TwakeServer {
154155
this.idServer.authenticate,
155156
this.logger
156157
)
158+
const invitationApi = Invitation(
159+
this.conf,
160+
this.idServer.db,
161+
this.idServer.authenticate,
162+
this.logger
163+
)
157164

158165
this.endpoints.use(privateNoteApi)
159166
this.endpoints.use(mutualRoolsApi)
@@ -164,6 +171,7 @@ export default class TwakeServer {
164171
this.endpoints.use(activeContactsApi)
165172
this.endpoints.use(qrCodeApi)
166173
this.endpoints.use(metricsApi)
174+
this.endpoints.use(invitationApi)
167175

168176
if (
169177
this.conf.opensearch_is_activated != null &&

0 commit comments

Comments
 (0)