We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a10d46c commit 185e28eCopy full SHA for 185e28e
example/scalalib/web/3-todo-http4s/src/WebApp.scala
@@ -27,11 +27,11 @@ object WebApp extends IOApp.Simple {
27
Ok(renderBody(state))
28
29
case request @ POST -> Root / "add" / state =>
30
- (for {
+ for {
31
text <- request.as[String]
32
_ <- todosRef.update(Seq(Todo(false, text)) ++ _)
33
response <- Ok(renderBody(state))
34
- } yield response).debug()
+ } yield response
35
36
case POST -> Root / "delete" / state / IntVar(index) =>
37
todosRef.update(_.patch(index, Nil, 1)) *> Ok(renderBody(state))
0 commit comments