@@ -58,6 +58,14 @@ Let's break that down:
58 is equivalent to `/list-all/users`. This means that sometimes `:>` is somehow
58 is equivalent to `/list-all/users`. This means that sometimes `:>` is somehow
59 equivalent to `/`, but sometimes it just lets you chain another combinator.
59 equivalent to `/`, but sometimes it just lets you chain another combinator.
61+Tip: If your endpoint responds to `/` (the root path), just omit any combinators
62+that introduce path segments. E.g. the following api has only one endpoint on `/`:
61We can also describe APIs with multiple endpoints by using the `:<|>`
69We can also describe APIs with multiple endpoints by using the `:<|>`
62combinators. Here's an example:
70combinators. Here's an example: