Page Contents

Home > @loopback/rest > BaseRoute > (constructor)

BaseRoute.(constructor)

Construct a new route

Signature:

constructor(verb: string, path: string, spec: OperationObject);

Parameters

Parameter Type Description
verb string http verb
path string http request path pattern
spec OperationObject OpenAPI operation spec