Module

Bucketchain.SimpleAPI

#withSimpleAPI

withSimpleAPI :: forall ex server. Servable ex server => ex -> server -> Middleware

SimpleAPI middleware.

ex is any extra data. It is typically global context such as db connection and can be used in Proc.

server is a Servable instance.

Modules