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[] | The primary key. | ||
| throwOnUndefinedPk | boolean | Whether to throw an error if pk is undefined. | ||
| view | string | The view name. |
Returns
Promise
The route configuration.
Throws
- If parentPk or pk is required but not provided.
Source
client/lib/router/getCrud.js:26