rename list to rules, change api to free list control namespace

This commit is contained in:
yggverse 2026-03-27 11:14:33 +02:00
parent 949a8a3b2c
commit c821fa7492
5 changed files with 43 additions and 41 deletions

View file

@ -25,7 +25,7 @@ RUST_LOG=trace cargo run -- --allow=http://localhost/allow.txt \
* use http://127.0.0.1:8010 for API:
* `/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/rules` - return active rules (from server memory)
* `/api/cache/clean` - clean the `--cache` file (returns deleted rules or `null` if not enabled)
### Allow list example