Implement /api/runner/status

This commit is contained in:
Joscha 2023-08-10 18:47:44 +02:00
parent 5c8c037417
commit c713abc5d3
11 changed files with 296 additions and 29 deletions

View file

@ -1,3 +1,4 @@
mod api;
mod commit;
mod commit_hash;
mod index;
@ -47,6 +48,7 @@ pub async fn run(server: Server) -> somehow::Result<()> {
.route("/commit/:hash", get(commit_hash::get))
.route("/queue/", get(queue::get))
.route("/queue/table", get(queue::get_table))
.merge(api::router(&server))
.fallback(get(r#static::static_handler))
.with_state(server.clone());