mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-04 02:14:01 +00:00
20 lines
579 B
JavaScript
20 lines
579 B
JavaScript
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,
|
|
};
|
|
}
|