wrapEndpoint
open fun Route.wrapEndpoint(optional: Boolean, endpoint: Route.() -> Unit)
Content copied to clipboard
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.