1
0
Fork 0
mirror of synced 2024-09-29 08:51:28 +13:00

Update docs/tutorials/add-route.md

Co-authored-by: Vincent (Wen Yu) Ge <wenyu1999@hotmail.com>
This commit is contained in:
Shimon Newman 2022-09-09 16:03:09 +03:00 committed by GitHub
parent 4809520462
commit d865b5adee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,7 +144,7 @@ App::post('/v1/storage/buckets/:bucketId/files')
->inject('user')
```
In the example above user object is injected to the route pre bounded using App::setResource().
In the example above, the user object is injected into the route pre-bounded using `App::setResource()`.
```php
App::setResource('user', function() {