def Api.prefix

bend-kube-runtime@0.2.0.0 · src/core.bend:87

import bend-kube-runtime@0.2.0.0/src/core.bend as Core
import Base

87def Api.prefix(g: String, v: String, core: Bool) -> String:
88  match core:
89    case True{}:
90      "/api/" ++ v
91    case False{}:
92      "/apis/" ++ g ++ "/" ++ v

Uses (3)

Used by (1)