This commit is contained in:
@@ -109,21 +109,21 @@ namespace AyaNova.Api.Controllers
|
||||
//Iterate all log files and build return
|
||||
var files = System.IO.Directory.GetFiles(ServerBootConfig.AYANOVA_LOG_PATH, "log-ayanova*.txt");
|
||||
|
||||
Newtonsoft.Json.Linq.JObject o = Newtonsoft.Json.Linq.JObject.FromObject(new
|
||||
{
|
||||
logs =
|
||||
from f in files
|
||||
orderby f
|
||||
select new
|
||||
{
|
||||
logName = System.IO.Path.GetFileName(f)
|
||||
}
|
||||
});
|
||||
// Newtonsoft.Json.Linq.JObject o = Newtonsoft.Json.Linq.JObject.FromObject(new
|
||||
// {
|
||||
// logs =
|
||||
// from f in files
|
||||
// orderby f
|
||||
// select new
|
||||
// {
|
||||
// logName = System.IO.Path.GetFileName(f)
|
||||
// }
|
||||
// });
|
||||
|
||||
|
||||
|
||||
|
||||
return Ok(ApiOkResponse.Response(o));
|
||||
return Ok(ApiOkResponse.Response(files.OrderByDescending(z => z).Select(z => System.IO.Path.GetFileName(z)).ToList()));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user