Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
varshith257 committed Dec 11, 2024
2 parents 42bd2e2 + 497b692 commit d30ffdf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions zio-http/shared/src/main/scala/zio/http/Routes.scala
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,8 @@ final case class Routes[-Env, +Err](routes: Chunk[zio.http.Route[Env, Err]]) { s
val tree = self.tree
Handler
.fromFunctionHandler[Request] { req =>
println(s"[DEBUG] Incoming request: Method = ${req.method}, Path = ${req.path}")

val chunk = tree.get(req.method, req.path)
def allowedMethods = tree.getAllMethods(req.path)
req.method match {
Expand Down

0 comments on commit d30ffdf

Please sign in to comment.