Routes ​
- Type
- Class
- Namespace
- craft\mcp\capabilities
- Inherits
- craft\mcp\capabilities\Routes
- Since
- 5.12.0
Public Methods ​
| Method | Description |
|---|---|
| __construct() | |
| create() | |
| delete() | |
| get() | |
| list() | |
| update() |
__construct() ​
Arguments ​
$routes
create() ​
Arguments ​
$uriParts(list<string|array{0: string, 1: string}>) – Literal strings and [name, regex] parameter tuples.$template$siteUid
Returns ​
array{route: array<string,mixed>}
delete() ​
Arguments ​
$uid$uri
Returns ​
array{deleted: true}
get() ​
Arguments ​
$uid$uri
Returns ​
array{route: array<string,mixed>}
list() ​
Returns ​
array{count: int, routes: list<array<string,mixed>>}
update() ​
Arguments ​
$context$uid$uri$uriParts(list<string|array{0: string, 1: string}>) – Literal strings and [name, regex] parameter tuples.$template$siteUid
Returns ​
array{route: array<string,mixed>}
Constants ​
| Constant | Description |
|---|---|
UriPartSchema |