Skip to content

Commit

Permalink
Checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Quafadas committed Feb 1, 2023
1 parent 6cebb99 commit 21e9c27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/docs/src/main/paradox/reference/Sessions.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@ val dbAccess: Resource[IO, MySessionPool] = for {
val routesWithDb : Resource[cats.effect.IO, HttpRoutes[IO]] = dbAccess.flatMap { sessionPool =>
val service : AnHttpServiceImpl[IO] = AnHttpServiceImpl(sessionPool)
val getStuffRoute: HttpRoutes[IO] = HttpRoutes.of[IO] {
case req @ GET -> "ui" /: rest =>
service.getStuff(rest)
case req @ GET -> "stuff" =>
service.getStuff()
}
getStuffRoute
}
Expand Down

0 comments on commit 21e9c27

Please sign in to comment.