Explorer

definy.is-worker-first-path

description
Whether the server handles the path itself (RPC /definy.v1., /virtual/, /healthz) instead of the static assets
type
Fn(path: String) -> Boolean
expression
fn(path$0) =>
  @core.or(
    left: @std.string-starts-with(value: $0, prefix: "/definy.v1."),
    right: @core.or(
      left: @std.string-starts-with(value: $0, prefix: "/virtual/"),
      right: @core.or(
        left: @std.string-starts-with(value: $0, prefix: "/healthz"),
        right: @core.equal(left: $0, right: "/mcp")
      )
    )
  )
visibility
public
definy.is-worker-first-path (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: SdPDUiWcPYHEiFYYqIi1UQq86ijSaOHMlciO1VjSPoI
content hash: a47QS_NkpXJXApVn6fqLH5gzltQyMSKdREjNknvSny0