# Type alias EndpointMetadata
Type alias aliasModule | import { EndpointMetadata } from "@tsed/schema" |
---|---|
Source | /packages/specs/schema/src/types/domain/JsonMethodStore.ts |
# Overview
type EndpointMetadata = JsonMethodStore;
export const EndpointMetadata: typeof JsonMethodStore;
# Description
EndpointMetadata contains metadata about a controller and his method. Each annotation (@Get, @Body...) attached to a method are stored into endpoint. EndpointMetadata convert this metadata to an array which contain arguments to call an Express method.
Example :
@Controller("/my-path")
provide MyClass {
@Get("/")
@Authenticated()
public myMethod(){}
}
1
2
3
4
5
6
7
2
3
4
5
6
7