audio files management

This commit is contained in:
2025-11-14 09:20:56 +02:00
parent fa78aa68fd
commit 006d159a0f
6 changed files with 15 additions and 6 deletions
+1 -1
View File
@@ -27,7 +27,7 @@ class AssetController{
router.get('/:where/:id(*)', async (req, res)=>{
res.sendFile(config.fs.repo + req.params.where + '/' + req.params.id, (err)=>{
if (err){
console.error('Error retreiving file', req.params, err.code, err.message);
//console.error('Error retreiving file', req.params, err.code, err.message);
if (req.params.where == 'thumb'){
res.redirect(302, '/empty.png');
}else res.status(404).end();