refactor(backend): final cleanup pass

- re-register WebAuthn passkey routes (registration was dropped in the
  #1054 merge, breaking passkey login) and document all six endpoints
- delete utils/simple-db-ops.ts (last caller migrated to DataCrypto)
- starter: use the typed serverReady export, collapse the four-way
  version lookup to env then package.json candidates
- add OpenAPI JSDoc to c2s-tunnel-presets endpoints
- strip block-divider comment banners
This commit is contained in:
LukeGus
2026-07-16 04:42:31 -05:00
parent 9c8528e4d2
commit f3a4d5662c
11 changed files with 216 additions and 233 deletions
@@ -4,9 +4,9 @@ const mocks = vi.hoisted(() => ({
isUserDataUnlocked: vi.fn(),
}));
vi.mock("../../../utils/simple-db-ops.js", () => ({
SimpleDBOps: {
isUserDataUnlocked: mocks.isUserDataUnlocked,
vi.mock("../../../utils/data-crypto.js", () => ({
DataCrypto: {
canUserAccessData: mocks.isUserDataUnlocked,
},
}));