Merge pull request #1162 from ethercrow/patch-1
Fix the example in Servant.Server
This commit is contained in:
commit
726380964a
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ import Servant.Server.Internal
|
||||||
-- Example:
|
-- Example:
|
||||||
--
|
--
|
||||||
-- > type MyApi = "books" :> Get '[JSON] [Book] -- GET /books
|
-- > type MyApi = "books" :> Get '[JSON] [Book] -- GET /books
|
||||||
-- > :<|> "books" :> ReqBody Book :> Post '[JSON] Book -- POST /books
|
-- > :<|> "books" :> ReqBody '[JSON] Book :> Post '[JSON] Book -- POST /books
|
||||||
-- >
|
-- >
|
||||||
-- > server :: Server MyApi
|
-- > server :: Server MyApi
|
||||||
-- > server = listAllBooks :<|> postBook
|
-- > server = listAllBooks :<|> postBook
|
||||||
|
|
Loading…
Reference in a new issue