draft multi-list rules api

This commit is contained in:
yggverse 2026-03-27 15:58:24 +02:00
parent 752ea23f80
commit 18509e6d1a
4 changed files with 133 additions and 76 deletions

View file

@ -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