Fix job images
Added Active file info API
This commit is contained in:
@@ -51,6 +51,21 @@ namespace Step.Controllers.WebApi
|
||||
}
|
||||
}
|
||||
|
||||
[Route("file/active/info"), HttpGet]
|
||||
public IHttpActionResult GetActiveFileInfo([FromUri]string filePath)
|
||||
{
|
||||
using (NcHandler ncHandler = new NcHandler())
|
||||
{
|
||||
ncHandler.Connect();
|
||||
|
||||
CmsError cmsError = ncHandler.GetActiveFileInfo(filePath, out InfoFile fileInfo);
|
||||
if (cmsError.IsError())
|
||||
return BadRequest(cmsError.localizationKey);
|
||||
|
||||
return Ok(fileInfo);
|
||||
}
|
||||
}
|
||||
|
||||
[Route("file/active"), HttpPut]
|
||||
public IHttpActionResult SetActiveProgram([FromUri]string filePath)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user