make it work for build ready

This commit is contained in:
2023-11-08 15:31:24 +01:00
parent 4b20070561
commit 7e75da4d94
6 changed files with 112 additions and 4 deletions

View File

@@ -114,14 +114,13 @@ app.get( '/clientStatusUpdate/:status', ( req, res ) => {
} );
app.get( '/openSongs', ( req, res ) => {
res.send( '{ "data": [ "/home/janis/Music/KB2022" ] }' );
// res.send( '{ "data": [ "/mnt/storage/SORTED/Music/audio/KB2022" ] }' );
// res.send( '{ "data": [ "/home/janis/Music/KB2022" ] }' );
res.send( '{ "data": [ "/mnt/storage/SORTED/Music/audio/KB2022" ] }' );
// res.send( { 'data': dialog.showOpenDialogSync( { properties: [ 'openDirectory' ], title: 'Open music library folder' } ) } );
} );
app.get( '/indexDirs', ( req, res ) => {
if ( req.query.dir ) {
// TODO: Load from json file
indexer.index( req ).then( dirIndex => {
res.send( dirIndex );
} ).catch( err => {