mirror of
https://github.com/wu736139669/hapi.git
synced 2026-08-05 06:24:37 +00:00
feat: add namespace-based multi-user isolation
Implement namespace support across sessions, machines, and users for multi-user server deployments. Add access control with specific error reasons (namespace-missing, access-denied, not-found) and database schema updates with namespace columns and indexes.
This commit is contained in:
@@ -77,7 +77,7 @@ function createWebApp(options: {
|
||||
app.route('/api', createBindRoutes(options.jwtSecret, options.store))
|
||||
|
||||
app.use('/api/*', createAuthMiddleware(options.jwtSecret))
|
||||
app.route('/api', createEventsRoutes(options.getSseManager))
|
||||
app.route('/api', createEventsRoutes(options.getSseManager, options.getSyncEngine))
|
||||
app.route('/api', createSessionsRoutes(options.getSyncEngine))
|
||||
app.route('/api', createMessagesRoutes(options.getSyncEngine))
|
||||
app.route('/api', createPermissionsRoutes(options.getSyncEngine))
|
||||
|
||||
Reference in New Issue
Block a user