Skip to content

Commit

Permalink
Update zio http docs
Browse files Browse the repository at this point in the history
  • Loading branch information
adamw committed Sep 27, 2024
1 parent a05a29d commit 85bd061
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/server/ziohttp.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,14 @@ val countCharactersHttp: Routes[Any, Response] =
ZioHttpInterpreter().toHttp(countCharactersEndpoint.zServerLogic(countCharacters))
```

```{note}
A single ZIO Http application can contain both Tapir-generated and ZIO-Http-native routes. However, because of the
routing implementation in ZIO Http, the shape of the paths that Tapir and other ZIO Http routes serve should not
overlap. The shape of the path includes exact path segments, single- and multi-wildcards.
Such overlapping routes may cause incorrect 404 (Not Found) or 405 (Method Not Allowed) responses.
```

## Server logic

When defining the business logic for an endpoint, the following methods are available, which replace the
Expand Down

0 comments on commit 85bd061

Please sign in to comment.