mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
Introduce Server/service/ package with MessageService, ChannelService, and PermissionService that encapsulate business logic previously scattered across REST and WS handlers. The PermissionService adds per-user in-memory caching with TTL-based expiry to eliminate per-message DB round-trips at scale. Services are wired into the WS hub via deps structs (strangler-fig pattern) — existing handlers continue to work unchanged, with service references available for incremental migration. https://claude.ai/code/session_01CBFF3r84ywkJRWwuqw8zD8