mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Update docs/tutorials/add-route.md
Co-authored-by: Vincent (Wen Yu) Ge <wenyu1999@hotmail.com>
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user