on master help sign in
Renumber APIs in the tutorial to be in order
commite8c71586002bee75c63f116754920f75878ef957 authorDavid Turner <dave.c.turner@gmail.com> dateTue 16 May 2017, 09:18 (9 years ago) parent5a65563
1 file changed+2−2
doc/tutorial/ApiType.lhs+2−2
doc/tutorial/ApiType.lhs+2−2
@@ -321,7 +321,7 @@ data BasicAuth (realm :: Symbol) (userData :: *)
321321Which is used like so:
322322
323323``` haskell
324−type ProtectedAPI12
324+type ProtectedAPI11
325325 = UserAPI -- this is public
326326 :<|> BasicAuth "my-realm" User :> UserAPI2 -- this is protected by auth
327327```
@@ -334,7 +334,7 @@ you want to plug a [wai `Application`](http://hackage.haskell.org/package/wai)
334334into your webservice:
335335
336336``` haskell
337−type UserAPI11 = "users" :> Get '[JSON] [User]
337+type UserAPI12 = "users" :> Get '[JSON] [User]
338338 -- a /users endpoint
339339
340340 :<|> Raw