Skip to content

Commit

Permalink
edit todo
Browse files Browse the repository at this point in the history
  • Loading branch information
IrosTheBeggar committed Mar 15, 2021
1 parent aba6e8e commit f379642
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,11 @@ exports.serveIt = async configFile => {
// album art folder
mstream.use('/album-art', express.static(config.program.storage.albumArtDirectory));

// TODO: Add middleware to determine if user has access to the exact file
// TODO: determine if user has access to the exact file
// mstream.all('/media/*', (req, res, next) => {
// next();
// });

Object.keys(config.program.folders).forEach( key => {
mstream.use('/media/' + key + '/', express.static(config.program.folders[key].root));
});
Expand Down

0 comments on commit f379642

Please sign in to comment.