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
messaging.accounts auth: user
/api/messaging/accounts
messaging.accounts auth: userGET
messaging.account-holders auth: user