Spaces:
Sleeping
Sleeping
Commit History
-
feat: add runtime configuration for rate limiting and Redis
- Update rate-limit and Redis settings via the admin API without restarting - Apply changes immediately through in-memory overridese9d5bbe -
refactor: extract routes into separate module with favicon support
- Move route parsing and request dispatch into server/route.js - Add favicon and API attribution handling - Require /api prefix and strip trailing slashes when parsing routes - Emit compact JSON responses to reduce payload size - Update and extend tests for the new route handlingad871c9
-
feat: require confirm body for reset-database and extract mock factory
- Guard the reset-database admin endpoint behind a confirmation body - Extract a mock factory to simplify test configuration7db7c77 -
refactor: move SENSITIVE_KEYS to config module
- Centralize sensitive environment keys in config and export thema3bf2e3
-
refactor: rewrite rate-limiter with circuit breaker and CIDR support
- Add three-tier fallback: Redis Lua, in-memory LRU, and allow-all - Implement a circuit breaker with escalating block durations - Support CIDR-based trusted proxy extraction7b6e647 -
feat: add admin routes with argon2 auth
- Add admin endpoints for runtime configuration and database reset - Hash and verify admin keys with argon2 using a 5s cached LRU - Polish the API documentation2e6d0d7
-
feat: add graceful shutdown handler
- Close the HTTP server and Redis connection on SIGINT and SIGTERM - Add an integration test covering the shutdown pathcfbebe0 -
feat: add pagination, search, and sorting to list endpoints
- Support _page, _limit, _start, and _end pagination parameters - Add q text search across resources - Add _sort and _order on all listable resourceseab7289
-
refactor: reorganize src into feature subdirectories
- Group config, db, middleware, redis, and server code into subfolders - Update all require paths across the codebase1f0f638