qualityd 0.1.0-alpha.3

Quality Studio HTTP surface for Weavatrix Quality
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Exception-first Quality Studio pages. Spec §31 and §58.
//!
//! These bytes are a projection of the JSON API. They do not decide verdicts.

use crate::http::HttpResponse;

/// Default cockpit. Passing proofs stay behind `suppressed_passing`.
#[must_use]
pub fn cockpit() -> HttpResponse {
    HttpResponse::html(include_str!("../web/index.html"))
}

/// Fetch-and-render script. Unknown API fields are shown, never computed.
#[must_use]
pub fn script() -> HttpResponse {
    HttpResponse::javascript(include_str!("../web/studio.js"))
}