docs: readme

This commit is contained in:
Orion Kindel
2025-03-01 16:43:40 -06:00
parent fc46660c56
commit ed931d8795

View File

@@ -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`: