Skip to content

Commit

Permalink
fix(metrics): metrics endpoint is incorrectly routed as a repository (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
PhotonQuantum authored Nov 1, 2022
1 parent 8725ad0 commit 4dd7fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 4dd7fd3

Please sign in to comment.