Inizio modifica servizio API x rotte img static
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user