getCRUDForTo
Overview
Get the route configuration for a CRUD operation.
Signature
getCRUDForTo(params)
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| params | object | yes | The parameters. |
params Properties
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| app | string | The app name. | ||
| model | string | The model name. | ||
| pk | string | string[] | One primary key, which targets the detail route, or an array of keys, which targets the list route with one repeated pk query value per key. An empty array is no selection. | ||
| query | any | Other query values for the target. Pass keys through pk; a pk entry here throws. | ||
| view | string | The view name. |
Returns
Promise
The route configuration.
Throws
- When
queryhas apkentry.
Source
client/lib/router/getCrud.js:28