Inizio modifica servizio API x rotte img static

This commit is contained in:
Samuele Locatelli
2026-04-01 12:27:46 +02:00
parent 7a3d9bb81c
commit ddb9bf4347
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -136,7 +136,12 @@ namespace Lux.API.Controllers
string filePath = Path.Combine(basePath, "static", id);
if (!System.IO.File.Exists(filePath))
return NotFound();
{
id = "empty.svg";
filePath = Path.Combine(basePath, "static", id);
//// uso empy.svg!
//return NotFound();
}
// MIME automatico
var provider = new FileExtensionContentTypeProvider();