Repository navigation
Release v1.2.0
A command can declare its own name, which becomes the last segment of its route, so renaming or moving the module no longer changes the API.
Added
command "register-author"afteruse Arc.Commandsets the command's route name, for examplePOST /api/authors/registering-authors/register-author. The name must be kebab-case, checked at compile time, and the descriptor exposes it asroute_name.ARCE0005routes a command by its declared name, so two commands only collide when their effective routes do.
Changed
- The declaration is optional: without it the route is still derived from the module name. The generated TypeScript class still takes its name from the module.