Skip to content

Commit 446b003

Browse files
authored
chore: update readme (#103)
1 parent ead0010 commit 446b003

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ npm install --save-dev @gravity-ui/gateway
1313
First of all, you need to create a controller where you will import Gateway and Schema, and then return the initialized gateway controller:
1414

1515
```javascript
16-
import getGatewayControllers from '@gravity-ui/gateway';
16+
import {getGatewayControllers} from '@gravity-ui/gateway';
1717
import Schema from '<schemas package>';
1818

1919
const config = {
@@ -134,7 +134,7 @@ If the parameter value does not pass validation, the `GATEWAY_INVALID_PARAM_VALU
134134
Upon gateway initialization, in addition to exporting the controller, it also exports an `api` object, which represents the core for executing requests to the backend.
135135

136136
```javascript
137-
import getGatewayControllers from '@gravity-ui/gateway';
137+
import {getGatewayControllers} from '@gravity-ui/gateway';
138138
import Schema from '<schemas package>';
139139

140140
const config = {
@@ -180,7 +180,7 @@ const schemasByScopes = {scope1: schema1, scope2: schema2};
180180
Example with two scope namespaces: `root` and `anotherScope`.
181181

182182
```javascript
183-
import getGatewayControllers from '@gravity-ui/gateway';
183+
import {getGatewayControllers} from '@gravity-ui/gateway';
184184

185185
const {
186186
controller, // Controller
@@ -215,7 +215,7 @@ If the scope parameter is not specified, the default scope is assumed to be `roo
215215
When initializing the `gateway`, there is an option to explicitly specify the actions that need to be connected from the schemas. To do this, provide a list of available client-side actions in the `actions` field in the config. If `actions` are not provided, all actions from the schemas are connected by default.
216216

217217
```typescript
218-
import getGatewayControllers from '@gravity-ui/gateway';
218+
import {getGatewayControllers} from '@gravity-ui/gateway';
219219
import rootSchema from '<schemas package>';
220220
import localSchema from '../shared/schemas';
221221

0 commit comments

Comments
 (0)