mirror of
https://github.com/Noratrieb/uptime.git
synced 2026-01-14 16:45:06 +01:00
Create self-contained renderer CLI
This commit is contained in:
parent
1f89aae3de
commit
593f8ec279
6 changed files with 78 additions and 3 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue