playlist json
This commit is contained in:
parent
c2f0b9bf3f
commit
0dac24f77d
4 changed files with 29 additions and 0 deletions
|
|
@ -3,6 +3,7 @@ import fs from 'fs';
|
|||
import corsPassThru from './cors/index.mjs';
|
||||
import radarPassThru from './cors/radar.mjs';
|
||||
import outlookPassThru from './cors/outlook.mjs';
|
||||
import playlist from './src/playlist.mjs';
|
||||
|
||||
const app = express();
|
||||
const port = process.env.WS4KP_PORT ?? 8080;
|
||||
|
|
@ -14,6 +15,7 @@ app.set('view engine', 'ejs');
|
|||
app.get('/stations/*', corsPassThru);
|
||||
app.get('/Conus/*', radarPassThru);
|
||||
app.get('/products/*', outlookPassThru);
|
||||
app.get('/playlist.json', playlist);
|
||||
|
||||
// version
|
||||
const { version } = JSON.parse(fs.readFileSync('package.json'));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue