mirror of
https://codeberg.org/YGGverse/psocks.git
synced 2026-03-31 16:35:28 +00:00
draft multi-list rules api
This commit is contained in:
parent
752ea23f80
commit
18509e6d1a
4 changed files with 133 additions and 76 deletions
|
|
@ -27,6 +27,8 @@ RUST_LOG=trace cargo run -- --allow=http://localhost/allow.txt \
|
|||
* `/api/rules` - return active rules (from server memory)
|
||||
* `/api/lists` - get parsed lists with its ID
|
||||
* `/api/list/<ID>` - get all parsed rules for list ID (see `/api/lists`)
|
||||
* `/api/list/enable/<ID>` - enable all parsed rules of given list ID (see `/api/lists`)
|
||||
* `/api/list/disable/<ID>` - disable all parsed rules of given list ID (see `/api/lists`)
|
||||
|
||||
### Allow list example
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue