From e8c71586002bee75c63f116754920f75878ef957 Mon Sep 17 00:00:00 2001 From: David Turner Date: Tue, 16 May 2017 09:18:01 +0000 Subject: [PATCH] Renumber APIs in the tutorial to be in order --- doc/tutorial/ApiType.lhs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/tutorial/ApiType.lhs b/doc/tutorial/ApiType.lhs index d43b141d..7de0bc96 100644 --- a/doc/tutorial/ApiType.lhs +++ b/doc/tutorial/ApiType.lhs @@ -321,7 +321,7 @@ data BasicAuth (realm :: Symbol) (userData :: *) Which is used like so: ``` haskell -type ProtectedAPI12 +type ProtectedAPI11 = UserAPI -- this is public :<|> BasicAuth "my-realm" User :> UserAPI2 -- this is protected by auth ``` @@ -334,7 +334,7 @@ you want to plug a [wai `Application`](http://hackage.haskell.org/package/wai) into your webservice: ``` haskell -type UserAPI11 = "users" :> Get '[JSON] [User] +type UserAPI12 = "users" :> Get '[JSON] [User] -- a /users endpoint :<|> Raw