Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Nov 25, 2023
1 parent 0104092 commit 8196120
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/twirp_tiny_httpd/twirp_tiny_httpd.ml
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ let add_service ?middlewares ?(prefix = Some "twirp") (server : H.t)
| None -> route
in

H.add_route_handler server ~meth:`POST ?middlewares route @@ fun req ->
handle_rpc handler req
H.add_route_handler server ~meth:`POST ?middlewares route (fun req ->
handle_rpc handler req)
in

List.iter add_handler service.handlers

0 comments on commit 8196120

Please sign in to comment.