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();
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<Nullable>enable</Nullable>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Version>1.1.2604.0110</Version>
|
||||
<Version>1.1.2604.0112</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user