Skip to content

Commit 185e28e

Browse files
authored
1 parent a10d46c commit 185e28e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

example/scalalib/web/3-todo-http4s/src/WebApp.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ object WebApp extends IOApp.Simple {
2727
Ok(renderBody(state))
2828

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

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

0 commit comments

Comments
 (0)