Create self-contained renderer CLI

This commit is contained in:
nora 2023-09-22 18:36:59 +02:00
parent 1f89aae3de
commit 593f8ec279
6 changed files with 78 additions and 3 deletions

View file

@ -46,7 +46,7 @@ async fn root(State(db): State<Arc<Pool<Sqlite>>>) -> Response {
})
}
async fn render_root(db: Arc<Pool<Sqlite>>) -> Result<String> {
pub async fn render_root(db: Arc<Pool<Sqlite>>) -> Result<String> {
let checks = crate::db::get_checks(&db).await?;
let status = compute_status(checks);