Skip to content

Commit

Permalink
Add a couple more endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
casey committed Dec 1, 2023
1 parent 353b55e commit 9cb1b4c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions crates/audit-cache/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ const ENDPOINTS: &[(&str, StatusCode, &str)] = &[
StatusCode::OK,
"HIT",
),
(
"/content/6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i1",
StatusCode::NOT_FOUND,
"BYPASS",
),
(
"/preview/6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i0",
StatusCode::OK,
"BYPASS",
),
("/static/index.css", StatusCode::OK, "HIT"),
("/static/index.js", StatusCode::OK, "HIT"),
("/sat/FOO", StatusCode::BAD_REQUEST, "HIT"),
Expand Down
2 changes: 1 addition & 1 deletion justfile
Original file line number Diff line number Diff line change
Expand Up @@ -221,4 +221,4 @@ update-mdbook-theme:
curl https://raw.githubusercontent.com/rust-lang/mdBook/v0.4.35/src/theme/index.hbs > docs/theme/index.hbs

audit-cache:
cargo run -p audit-cache
cargo run --package audit-cache

0 comments on commit 9cb1b4c

Please sign in to comment.