Fix the example in Servant.Server
This commit is contained in:
parent
cfe4869303
commit
54812a9079
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