refactor: extract CCTV media and radio directory providers

This commit is contained in:
Sameh Khamis committed 2026-09-12 12:09:02 -07:00
1 parent fada0c661f
commit 79b4929b88
17 files changed
+1977 -1831

No files matched your search

+15
View File
@@ -0,0 +1,15 @@
import { createRadioProxyMiddleware } from './radio/catalog.js';
export { createRadioProxyMiddleware };
export { isPublicRadioAddress } from './radio/transport.js';
export { normalizeRadioBrowserStation, publicRadioStation, publicRadioHttpsUrl } from './radio/stations.js';
export function radioBrowserProxy() {
const middleware = createRadioProxyMiddleware();
const install = (server) => {
server.middlewares.use('/api/radio', middleware);
};
return {
name: 'radio-browser-proxy',
configureServer: install,
configurePreviewServer: install,
};
}