Fix NamedRoutes example in 0.19 changelog (#1523)
This commit is contained in:
parent
e14f445e2a
commit
6f12e38698
1 changed files with 3 additions and 3 deletions
|
@ -48,11 +48,11 @@ Package versions follow the [Package Versioning Policy](https://pvp.haskell.org/
|
|||
rootClient :: RootApi (AsClientT ClientM)
|
||||
rootClient = client (Proxy @API)
|
||||
|
||||
hello :: String -> ClientM String
|
||||
hello name = rootClient // hello /: name
|
||||
helloClient :: String -> ClientM String
|
||||
helloClient name = rootClient // hello /: name
|
||||
|
||||
endpointClient :: ClientM Person
|
||||
endpointClient = client // subApi /: "foobar123" // endpoint
|
||||
endpointClient = rootClient // subApi /: "foobar123" // endpoint
|
||||
|
||||
type Api = NamedRoutes RootApi
|
||||
|
||||
|
|
Loading…
Reference in a new issue