create namespace for json api; make temporarily index page reference to api/totals

This commit is contained in:
postscriptum 2026-03-23 08:11:19 +02:00
parent 24cbc3012e
commit 06228c577f
2 changed files with 15 additions and 7 deletions

View file

@ -26,8 +26,8 @@ RUST_LOG=trace cargo run -- --allow=http://localhost/allow.txt \
```
* set `socks5://127.0.0.1:1080` proxy in your application
* open http://127.0.0.1:8010 in browser for stats:
* `/allow/domain.com` - add rule to the current session (and `--cache` if defined)
* `/block/domain.com` - delete rule from the current session (and `--cache` if defined)
* `/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)
### Allow list example