010 orisha router showcase

✗ Failing This test is currently failing.

Failed: frontend

Failure Output

error[PARSE003]: 'event' is not a Koru keyword - a declaration is introduced with 'tor' (e.g. 'tor jump { how-high: i32 }')
  --> /Users/larsde/src/orisha/lib/routing.kz:57:1
    |
 57 | ~pub event match { path: []const u8, pattern: []const u8 }
    | ^

Code

input.kz

Expected output

matched GET /
matched GET /about
user=42
catch-all

Flows

flow ~router click a branch to expand · @labels scroll to their anchor
router (req: &req_root)
flow ~router click a branch to expand · @labels scroll to their anchor
router (req: &req_about)
flow ~router click a branch to expand · @labels scroll to their anchor
router (req: &req_user)
flow ~router click a branch to expand · @labels scroll to their anchor
router (req: &req_post)

Test Configuration

MUST_RUN