Update gestione environment
- in API x cercare img x env - update metodo x BEAM/WINDOW...
This commit is contained in:
@@ -97,13 +97,14 @@ namespace Lux.API.Controllers
|
||||
|
||||
/// <summary>
|
||||
/// Chiamata GET: restituisce file SVG (da file o da cache)
|
||||
/// PUT: api/window/svg-file/00000000-0000-0000-0000-000000000000
|
||||
/// GET: api/window/svg-file/OFF000000001?env=WINDOW
|
||||
/// </summary>
|
||||
/// <param name="id">id oggetto</param>
|
||||
/// <param name="id">uid oggetto</param>
|
||||
/// <param name="env">environment oggetto</param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("svgfile/{id}")]
|
||||
[HttpGet("svg-file/{id}")]
|
||||
public async Task<ActionResult<string>> svgFile(string id)
|
||||
public async Task<ActionResult<string>> svgFile(string id, Constants.EXECENVIRONMENTS env = Constants.EXECENVIRONMENTS.WINDOW)
|
||||
{
|
||||
Stopwatch sw = new Stopwatch();
|
||||
sw.Start();
|
||||
@@ -117,7 +118,7 @@ namespace Lux.API.Controllers
|
||||
id = id.Replace(".svg", "");
|
||||
}
|
||||
|
||||
string svgContent = await _imgService.LoadSvgAsync(id);
|
||||
string svgContent = await _imgService.LoadSvgAsync(id, env);
|
||||
byte[] bytes = System.Text.Encoding.UTF8.GetBytes(svgContent);
|
||||
|
||||
sw.Stop();
|
||||
|
||||
Reference in New Issue
Block a user