From 4dd7fd354f165d092d4c9e4cecd8296af85c7879 Mon Sep 17 00:00:00 2001 From: LightQuantum Date: Tue, 1 Nov 2022 11:33:44 +0800 Subject: [PATCH] fix(metrics): metrics endpoint is incorrectly routed as a repository (#66) --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 8aeec3a..86c7bef 100644 --- a/src/main.rs +++ b/src/main.rs @@ -162,8 +162,8 @@ async fn main() { })) .to(list), ) - .service(repo_routes()) .route("/metrics", web::get().to(metrics_endpoint)) + .service(repo_routes()) .route("/{path:.*}", web::get().to(index)) .default_service(web::route().to(not_found)) .wrap_fn(queue_length)