patch

fun patch(path: String, builder: WebRouteBuilder.() -> Unit)

Defines a PATCH route.

Parameters

path

The path of the route.

builder

The block to define the route's middleware and handler.