1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Updated Design: Version Control (markdown)

Nick O'Leary 2016-07-25 10:32:17 +01:00
parent a723336db9
commit 5903abe37d

@ -36,6 +36,8 @@ The existing API has separate methods for saving flows and credentials. The new
### `Storage.init(runtime)` ### `Storage.init(runtime)`
- `runtime` : a RED runtime object - `runtime` : a RED runtime object
Returns a promise that resolves when the storage subsystem has been initialised and is ready for subsequent API requests.
Passing in the runtime object allows the storage mechanism to access the `settings`, `log` components properly as well as `comms` if it needs to send notifications to the user. Passing in the runtime object allows the storage mechanism to access the `settings`, `log` components properly as well as `comms` if it needs to send notifications to the user.
### `Storage.getFlows([id])` ### `Storage.getFlows([id])`