Add EmptyAPI example (no prose yet)

This commit is contained in:
David Turner 2017-05-16 09:21:58 +00:00
parent b81fbe445d
commit 8a16f47fba

View file

@ -326,6 +326,16 @@ type ProtectedAPI11
:<|> BasicAuth "my-realm" User :> UserAPI2 -- this is protected by auth
```
### Empty APIs
TODO motivation...
``` haskell ignore
type UserAPI12
= UserAPI
:<|> EmptyAPI -- this adds nothing to the API
```
### Interoperability with `wai`: `Raw`
Finally, we also include a combinator named `Raw` that provides an escape hatch