fivem-ts

a library to speed up the development of Fivem scripts and frameworks


Project maintained by Purpose-Dev Hosted on GitHub Pages — Theme by mattgraham

fivem-ts - Documentation v0.7.5Docs


fivem-ts - Documentation v0.7.5 / Server / Route

Function: Route()

Route(method, path): MethodDecorator

Decorator to define a route in a controller.

Parameters

method: string

The HTTP method (GET, POST, etc.).

path: string

The route path.

Returns

MethodDecorator

Defined in

server/web/Route.ts:9