docs: readme
This commit is contained in:
@@ -26,7 +26,7 @@ getPersonAddress _ (Path id) = ...
|
||||
type Person = { firstName :: String, lastName :: String, age :: Maybe Int }
|
||||
|
||||
postPerson :: Post -> Path "persons" Unit -> ContentType Json -> Json Person -> Aff Response
|
||||
postPerson _ _ person = ...
|
||||
postPerson _ _ _ person = ...
|
||||
```
|
||||
|
||||
Then these can be rolled up into a `/persons` resource with `Handler.or`:
|
||||
|
||||
Reference in New Issue
Block a user