import { ControllerCatalog } from "../controller-catalog.ts" ; import { ControllerClass } from "../controller-metadata.ts" ; export function createActionDecorator ( method , route ? ) { return function ( target , propertyKey ) { ControllerCatalog . registerActionMetadata ( target . constructor as ControllerClass , propertyKey . toString ( ) , { method , route : route ?? "/" } ) ; } ; }