MessagingAccountsModule · packages/server/src/runtime/messaging/module.ts:131

MessagingAccountsModule

http-routes

The bot-account routes as a node of their own, beside the messaging bridge rather than in it: they read the stored bindings and ask the Project's machines, and never touch a connection. A machine-free server serves them the same way, answering for itself alone.

API

contributes: {
  "HttpModule.routes": [
    {
      "id": "messaging.accounts",
      "prefix": "/api/messaging",
      "auth": "user",
      "order": 281
    },
    {
      "id": "messaging.account-holders",
      "prefix": "/api/projects/:projectId/messaging",
      "auth": "user",
      "order": 282
    }
  ]
}

Code Half (@Bind)

@Bind("messaging.accounts") accountsRoutes!: Hono<AppEnv>; · @Bind("messaging.account-holders") accountHoldersRoutes!: Hono<AppEnv>;

Endpoints (2)

GET

/api/messaging/accounts

messaging.accounts auth: user
GET

/api/projects/:projectId/messaging/account-holders

messaging.account-holders auth: user