Show individual tasks

This commit is contained in:
Joscha 2023-08-06 21:47:48 +02:00
parent 171505d7ec
commit 2b81d497bc
5 changed files with 176 additions and 0 deletions

View file

@ -2,6 +2,7 @@ mod commit;
mod commit_hash;
mod index;
mod queue;
mod queue_id;
mod r#static;
use axum::{routing::get, Router, Server};
@ -45,6 +46,7 @@ pub async fn run(state: AppState) -> somehow::Result<()> {
.route("/commit/:hash", get(commit_hash::get))
.route("/queue/", get(queue::get))
.route("/queue/table", get(queue::get_table))
.route("/queue/:id", get(queue_id::get))
.fallback(get(r#static::static_handler))
.with_state(state.clone());