diff --git a/OliveTin.proto b/OliveTin.proto index 2e46f06..7094296 100644 --- a/OliveTin.proto +++ b/OliveTin.proto @@ -28,6 +28,17 @@ message StartActionResponse { int32 exitCode = 4; } +message GetLogsRequest{}; + +message LogEntry { + string datetime = 1; + string content = 2; +} + +message GetLogsResponse { + repeated LogEntry logs = 1; +} + service OliveTinApi { rpc GetButtons(GetButtonsRequest) returns (GetButtonsResponse) { option (google.api.http) = { @@ -41,4 +52,10 @@ service OliveTinApi { }; } + rpc GetLogs(GetLogsRequst) returns (GetLogsResponse) { + option (google.api.http) = { + get: "/api/GetLogs" + } + } + } diff --git a/webui/index.html b/webui/index.html index 21c5b8f..0eae6e3 100644 --- a/webui/index.html +++ b/webui/index.html @@ -12,9 +12,26 @@
-
- OliveTin Actions +
+ +
+ + + +