mirror of
https://codeberg.org/YGGverse/psocks.git
synced 2026-03-31 16:35:28 +00:00
implement (rules) list api
This commit is contained in:
parent
461f838cc0
commit
eeafed077a
4 changed files with 34 additions and 1 deletions
|
|
@ -28,6 +28,7 @@ RUST_LOG=trace cargo run -- --allow=http://localhost/allow.txt \
|
|||
* open http://127.0.0.1:8010 in browser for stats:
|
||||
* `/api/allow/{domain.com}` - add rule to the current session (and `--cache` if defined)
|
||||
* `/api/block/{domain.com}` - delete rule from the current session (and `--cache` if defined)
|
||||
* `/api/list` - Return active rules (from server memory)
|
||||
* `/api/cache/clean` - clean `--cache` file (returns deleted rules or `null` if not enabled)
|
||||
|
||||
### Allow list example
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue