Skip to main content

build_router

Function build_router 

Source
pub fn build_router(rest_available: bool) -> Router<Arc<CompilerApiState>>
Expand description

Build the compiler API router with availability derived from trusted host configuration.

The REST surface stays available only in a local single-owner profile; within it every spec, report and session is additionally scoped to the verified owner (#387).