Skip to content

Commit 05ea7a3

Browse files
committed
changing "procedure" to "route handler"
1 parent f99482c commit 05ea7a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/pages/cli/auth/admin.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ class MyCustomInterceptor: URLRequestInterceptor {
267267

268268
## Adding Admin Actions
269269

270-
To add additional admin actions that are not included by default but are enabled by Amazon Cognito, you will need to update the Lambda function code that is generated for you. The change will include adding a procedure for the action and creating a route for it. You will then associate the procedure to the route within the [Express](https://expressjs.com/) app.
270+
To add additional admin actions that are not included by default but are enabled by Amazon Cognito, you will need to update the Lambda function code that is generated for you. The change will include adding a route handler for the action and creating a route for it. You will then associate the route handler to the route within the [Express](https://expressjs.com/) app.
271271

272272
Below is an example of how to add an admin action that will allow you to [update a user's attributes](https://docs.aws.amazon.com/cognito-user-identity-pools/latest/APIReference/API_AdminUpdateUserAttributes.html).
273273
```js
@@ -293,9 +293,9 @@ async function updateUserAttributes(username, attributes) {
293293
}
294294
}
295295
```
296-
Once the procedure is defined, you will then add a route with the correct HTTP method to the Express app and associate the procedure to the route. Be sure to make the route unique.
296+
Once the route handler is defined, you will then add a route with the correct HTTP method to the Express app and associate the route handler to the route. Be sure to make the route unique.
297297

298-
Below is an example of how you can add a `POST` route named `/updateUserAttributes` and associate the above procedure to it.
298+
Below is an example of how you can add a `POST` route named `/updateUserAttributes` and associate the above route handler to it.
299299
```js
300300
app.post('/updateUserAttributes', async (req, res, next) => {
301301
if (!req.body.username || !req.body.attributes) {

0 commit comments

Comments
 (0)