Skip to content

covenix / Get

Function: Get()

Get(path?): MethodDecorator

Defined in: src/decorators.ts:92

Maps the decorated method to an HTTP GET route.

Parameters

path?

string = ''

Sub-path appended to the controller prefix. Use {name} for path parameters (e.g. '{id}'). Defaults to the prefix itself.

Returns

MethodDecorator