Skip to content

Commit

Permalink
request_handler: add /ping endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Khady committed May 27, 2024
1 parent a916d68 commit 40714fd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/request_handler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ let run ~ctx ~addr ~port =
in
match request.meth, List.map Web.urldecode path with
| _, [ "stats" ] -> ret (sprintf "%s %s uptime\n" signature Devkit.Action.uptime#get_str)
| _, [ "ping" ] -> ret ""
| `GET, [ "config" ] ->
let repo_url = Arg.str "repo" |> Web.urldecode in
( match%lwt Action.print_config ctx repo_url with
Expand Down

0 comments on commit 40714fd

Please sign in to comment.