Skip to content

Commit

Permalink
Remove debug (#4450)
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge authored Feb 1, 2025
1 parent a10d46c commit 185e28e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions example/scalalib/web/3-todo-http4s/src/WebApp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ object WebApp extends IOApp.Simple {
Ok(renderBody(state))

case request @ POST -> Root / "add" / state =>
(for {
for {
text <- request.as[String]
_ <- todosRef.update(Seq(Todo(false, text)) ++ _)
response <- Ok(renderBody(state))
} yield response).debug()
} yield response

case POST -> Root / "delete" / state / IntVar(index) =>
todosRef.update(_.patch(index, Nil, 1)) *> Ok(renderBody(state))
Expand Down

0 comments on commit 185e28e

Please sign in to comment.