Files
gaseous-server/gaseous-server/Controllers/LogsController.cs
Michael Green 9b77dee37b Surface logs in the UI (#91)
* JSON type log files now have the extension "json"

* Added logging to collection building

* Logs can now be viewed in the UI, improved log handling
2023-09-09 22:51:00 +10:00

21 lines
479 B
C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using gaseous_tools;
using Microsoft.AspNetCore.Mvc;
namespace gaseous_server.Controllers
{
[ApiController]
[Route("api/v1/[controller]")]
public class LogsController : Controller
{
[HttpGet]
[ProducesResponseType(StatusCodes.Status200OK)]
public List<Logging.LogItem> Logs()
{
return Logging.GetLogs();
}
}
}