logging improvements

This commit is contained in:
Shaun Walker
2019-10-22 18:16:04 -04:00
parent 135fe2d61a
commit e710fd61ca
6 changed files with 98 additions and 43 deletions

View File

@ -37,11 +37,11 @@ namespace Oqtane.Controllers
// GET api/<controller>/filename
[HttpGet("{filename}")]
public IActionResult Get(string filename)
public IActionResult Get(string assemblyname)
{
string binfolder = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);
byte[] file = System.IO.File.ReadAllBytes(Path.Combine(binfolder, filename));
return File(file, "application/octet-stream", filename);
byte[] file = System.IO.File.ReadAllBytes(Path.Combine(binfolder, assemblyname));
return File(file, "application/octet-stream", assemblyname);
}
// PUT api/<controller>/5