systemApi

fun Route.systemApi(block: Route.() -> Unit)(source)

DSL wrapper for system API routes. Automatically prefixes all nested routes with /api/_system.

Usage:

routing {
systemApi {
get("/health") { ... }
route("/plugins") { ... }
}
}

Parameters

block

Route configuration block