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