010 orisha router showcase

✗ Failing This test is currently failing.

Failed: frontend

Failure Output

Showing last 10 of 17 lines
  --> /Users/larsde/src/orisha/lib/index.kz:762:1
    |
762 | ~[comptime|transform]pub event router {
    | ^

error[PARSE003]: single continuation branch 'transformed' carrying a payload is a one-variant tag union — declare the single output as a bare return instead: `-> <type>`
  --> /Users/larsde/src/orisha/lib/index.kz:1352:1
    |
1352 | ~[comptime|transform]pub event static-router {
    | ^

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