AbstractEndpoint

constructor(vararg paths: String)

Register endpoints with multiple resources that it'll be located at.

Parameters

paths

variadic arguments of all the paths this endpoint will evaluate to


constructor(path: String)

Represents an endpoint to use to implement routing in an object-orientated way.

Parameters

path

A single resource prefix that will correspond to this AbstractEndpoint.


constructor(paths: List<String> = listOf("/"))

Parameters

paths

A list of HTTP resources that will be subsequently merged within the routing plugin.