Decorator to mark a class method as a route action. Automatically registers the method with route definitions using metadata.
Optional
Partial configuration for the route definition.
A method decorator.
import { Match } from '@stone-js/router';class UserController { @Match({ path: '/users', method: 'GET', name: 'getUsers' }) getUsers() { return 'List of users'; }} Copy
import { Match } from '@stone-js/router';class UserController { @Match({ path: '/users', method: 'GET', name: 'getUsers' }) getUsers() { return 'List of users'; }}
Decorator to mark a class method as a route action. Automatically registers the method with route definitions using metadata.