add logs and bump breez

This commit is contained in:
Kukks
2024-06-18 11:00:28 +02:00
parent 218c694190
commit 0caeaac5b4
6 changed files with 94 additions and 7 deletions

View File

@@ -74,6 +74,18 @@ public class BreezController : Controller
return View((object) storeId);
}
[HttpGet("logs")]
[Authorize(Policy = Policies.CanViewStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Cookie)]
public async Task<IActionResult> Logs(string storeId)
{
var client = _breezService.GetClient(storeId);
if (client is null)
{
return RedirectToAction(nameof(Configure), new {storeId});
}
return View( client.Events);
}
[HttpGet("sweep")]
[Authorize(Policy = Policies.CanModifyStoreSettings, AuthenticationSchemes = AuthenticationSchemes.Cookie)]