Decorator to mark a class method as a GET route action. Uses the Match decorator internally to register the route with the HTTP GET method.
GET
Match
Optional
Configuration options for the route definition, excluding the methods property.
methods
A method decorator to be applied to a class method.
import { Get } from '@stone-js/router';class UserController { @Get({ path: '/users', name: 'getUsers' }) getUsers() { return 'List of users'; }} Copy
import { Get } from '@stone-js/router';class UserController { @Get({ path: '/users', name: 'getUsers' }) getUsers() { return 'List of users'; }}
Decorator to mark a class method as a
GETroute action. Uses theMatchdecorator internally to register the route with the HTTPGETmethod.