mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 10:24:02 +00:00
fix(cctv): serve King County model/manufacturer through /api/cctv/sources
The loader and normalizer carried the hardware model, but the /sources response projection and the browser catalog both whitelist fields and dropped it, so no client consumer ever saw it. Project model and manufacturer (manufacturer disambiguates bare model strings like "3950") at both boundaries, and add a test that drives the real middleware and browser catalog end to end.
This commit is contained in:
6 files changed
+121
-1
No files matched your search
@@ -162,6 +162,8 @@ export function cctvProxy({ sourceRoot = process.cwd() } = {}) {
|
||||
sourceKind:
|
||||
source.sourceKind || (source.url ? 'configured' : 'fallback'),
|
||||
poseSource: source.poseSource,
|
||||
model: source.model || '',
|
||||
manufacturer: source.manufacturer || '',
|
||||
license: source.license,
|
||||
credit: source.credit || '',
|
||||
code: source.code || '',
|
||||
|
||||
Reference in new issue
Block a user