-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add POST /firewall/update/:id endpoint
Related to #30 Add POST /firewall/update/:id endpoint to update firewall rules by ID. * Add a new request type `UpdateRule` to the `Request` and `Response` enums in `message/src/firewall.rs`. * Add a new route for `POST /firewall/update/:id` in the `rules` router in `controller/src/firewall/mod.rs`. * Add a new handler function `update_rule` for the `POST /firewall/update/:id` route in `controller/src/firewall/mod.rs`. * Implement the logic to update the rule in the `update_rule` function in `controller/src/firewall/mod.rs`. * Add a new match arm for `Request::UpdateRule` in the `handle_message` function in `firewall/src/main.rs`. * Implement the logic to update the rule in the `handle_message` function in `firewall/src/main.rs`. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/AOx0/adam/issues/30?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
1bdfdc2
commit 8a8adba
Showing
3 changed files
with
46 additions
and
1 deletion.
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
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