-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: simplify and reorganize
Gateway
- use more concise types for ip/port to make cast to IP (and config creation in general) error-free. - extract routes to dedicated function: this practice and naming as `app` a known idiom: this makes for easier testing later on, and also will contain other configurations later on like banned IPs. - Fix naming of arg in `add_transaction`: the arg is already deserialized from json, so no _json suffix.
- Loading branch information
Gilad Chase
committed
Apr 4, 2024
1 parent
3a958a9
commit 9aa64ae
Showing
2 changed files
with
26 additions
and
25 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