Remove duplicate type declaration
UserAPI1 is already defined at line 64.
This commit is contained in:
parent
0c66b9c055
commit
abd11b2a8f
1 changed files with 0 additions and 6 deletions
|
@ -95,12 +95,6 @@ users1 =
|
|||
]
|
||||
```
|
||||
|
||||
Let's also write our API type.
|
||||
|
||||
``` haskell ignore
|
||||
type UserAPI1 = "users" :> Get '[JSON] [User]
|
||||
```
|
||||
|
||||
We can now take care of writing the actual webservice that will handle requests
|
||||
to such an API. This one will be very simple, being reduced to just a single
|
||||
endpoint. The type of the web application is determined by the API type,
|
||||
|
|
Loading…
Reference in a new issue