Class LogController
- Namespace
- GastroSky.Controllers.V1
- Assembly
- GastroSky.dll
Admin endpoints for fetching log files.
[ApiController]
[Authorize]
[Route("api/v1/logs")]
[Produces("application/json", new string[] { })]
public class LogController : GastroSkyControllerBase
- Inheritance
-
LogController
- Inherited Members
Constructors
LogController(IConfiguration, IMapper)
Admin endpoints for fetching log files.
public LogController(IConfiguration configuration, IMapper mapper)
Parameters
configurationIConfigurationmapperIMapper
Methods
GetLogFile(string?)
[HttpGet]
[Route("download")]
[Authorize(Policy = "ADMIN_ONLY")]
public IActionResult GetLogFile(string? date = null)
Parameters
datestring
Returns
GetLogs(string?)
[HttpGet]
[Route("")]
[Authorize(Policy = "ADMIN_ONLY")]
public IActionResult GetLogs(string? date = null)
Parameters
datestring