Skip to content

Commit dc36f05

Browse files
committed
Tidy up
1 parent b757951 commit dc36f05

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎docs/tutorials/add-route.md‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ App::get('/v1/storage/buckets/:bucketId/files/:fileId/preview')
9696
* abuse-time - Specifies the time frame (in seconds) relevancy of the all other abuse definitions, per route.
9797

9898
When using the example below, we configure the abuse mechanism to allow this key combination
99-
constructed from the uniq combination of the ip, http method, url, userId to hit the route maximum 60 times in 1 hour (60 seconds * 60 minutes).
99+
constructed from the combination of the ip, http method, url, userId to hit the route maximum 60 times in 1 hour (60 seconds * 60 minutes).
100100

101101
```php
102102
App::post('/v1/storage/buckets/:bucketId/files')
@@ -126,13 +126,14 @@ App::post('/v1/storage/buckets/:bucketId/files')
126126
### 5. Param
127127
As the name implies, `param()` is used to define a request parameter.
128128

129-
param() accepts 7 parameters :
129+
`param()` accepts 6 parameters :
130130
* A key (name)
131131
* A default value
132-
* An instance of a relevant validator class
132+
* An instance of a validator class,This can also accept a callback that returns a validator instance. Dependency injection is supported for the callback.
133133
* Description of the parameter
134134
* Is the route optional
135135
* An array of injections
136+
136137
```php
137138
App::get('/v1/account/logs')
138139
->param('queries', [], new Queries(new Limit(), new Offset()), 'Array of query strings generated using the Query class provided by the SDK. [Learn more about queries](https://appwrite.io/docs/databases#querying-documents). Only supported methods are limit and offset', true)

0 commit comments

Comments
 (0)