wrapEndpoint

open fun Route.wrapEndpoint(optional: Boolean, endpoint: Route.() -> Unit)

Wrap the endpoint. endpoint must be called at some point, it will build the rest of the endpoint.

Parameters

optional

Whether the scope is a optional scope for the method it is being applied to.

endpoint

Builder for the rest of the endpoint.

Sources

Link copied to clipboard