Remove /commit/ endpoint

This commit is contained in:
Joscha 2023-08-10 20:40:41 +02:00
parent c713abc5d3
commit d5a41abaff
5 changed files with 139 additions and 166 deletions

View file

@ -1,6 +1,5 @@
mod api;
mod commit;
mod commit_hash;
mod index;
mod queue;
mod r#static;
@ -44,8 +43,7 @@ pub async fn run(server: Server) -> somehow::Result<()> {
let app = Router::new()
.route("/", get(index::get))
.route("/commit/", get(commit::get))
.route("/commit/:hash", get(commit_hash::get))
.route("/commit/:hash", get(commit::get))
.route("/queue/", get(queue::get))
.route("/queue/table", get(queue::get_table))
.merge(api::router(&server))