Spaces:
Sleeping
Sleeping
Commit History
-
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: 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
-
test: refactor test infra with createClearCjs helper
- Add a helper to clear the CJS require cache between module re-imports - Simplify server tests that inject mock dependencies13def79
-
test: migrate test imports to CJS _require for V8 coverage
- Route dynamic imports through the CJS cache helper - Ensure V8 coverage is tracked for CommonJS modules9c74555
-
refactor: reorganize src into feature subdirectories
- Group config, db, middleware, redis, and server code into subfolders - Update all require paths across the codebase1f0f638
-
test: add unit tests for core modules
- Cover config, load-env, database, migrate, seed, redis, and rate-limiter - Re-import modules with different environment values to hit each branch25059bd