options

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

Defines an OPTIONS route.

Parameters

path

The path of the route.

builder

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