Files
LowderPlay_cheburcheck/website/Cargo.toml
T
Mikhail Gorbachev 741ae887f5 feat: add public JSON API for IP/domain checking (#60)
Adds GET /api/v1/check?target= endpoint that returns JSON instead of HTML.
Rate limited to 30 req/min per IP (configurable via API_RATE_LIMIT_RPM env var).
Queries are logged to the database same as web UI checks.
2026-04-20 00:34:03 +05:00

25 lines
767 B
TOML

[package]
name = "website"
version = "0.4.3"
edition = "2024"
[dependencies]
rocket = { version = "0.5.1", features = ["msgpack", "json"] }
rocket_dyn_templates = { version = "0.2.0", features = ["tera"] }
sqlx = { version = "0.8.6", features = ["runtime-tokio", "postgres", "migrate", "chrono", "uuid"] }
rocket-client-addr = "0.5.4"
serde = { workspace = true }
reports = { path = "../reports" }
querying = { path = "../querying" }
env_logger = "0.11.10"
rocket-cache-response = "0.6.4"
log = { workspace = true }
dotenvy = { version = "0.15.7" }
governor = { version = "0.6", features = ["dashmap"] }
[build-dependencies]
reqwest = { version = "0.12", features = ["blocking", "json"] }
serde = { version = "1", features = ["derive"] }
tar = "0.4"
flate2 = "1.1"