-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an endpoint to clear an instance's console buffer
Fixes #299 Add an endpoint to clear an instance's console buffer by clearing the circular buffer within the global app state buffer. * **core/src/lib.rs** - Add a method `clear_console_buffer` to the `AppState` struct to clear the console buffer for a specific instance. * **core/src/handlers/events.rs** - Add a new function `clear_console_buffer` to handle the request to clear the console buffer. - Add a new route `/instance/:uuid/console/clear` to handle the request to clear the console buffer. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/Lodestone-Team/lodestone/issues/299?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters