* Defines a new command for use with this executor. When a command is sent, * the path will be preprocessed using the command's parameters; any * path segments prefixed with ":" will be replaced by the parameter of the * same name. For example, given "/person/:name" and the paramete
(name, method, path)
| 434 | * "/path/:variable/segment". |
| 435 | */ |
| 436 | defineCommand(name, method, path) { |
| 437 | if (!this.customCommands_) { |
| 438 | this.customCommands_ = new Map() |
| 439 | } |
| 440 | this.customCommands_.set(name, { method, path }) |
| 441 | } |
| 442 | |
| 443 | /** @override */ |
| 444 | async execute(command) { |