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:02:21 +03:00
committed by GitHub
parent 4cd0f4ea1e
commit 3e23759e69
+1 -1
View File
@@ -3,7 +3,7 @@
This document is part of the Appwrite contributors' guide. Before you continue reading this document make sure you have read the [Code of Conduct](https://github.com/appwrite/appwrite/blob/master/CODE_OF_CONDUCT.md) and the [Contributing Guide](https://github.com/appwrite/appwrite/blob/master/CONTRIBUTING.md).
### 1. Alias
Setting an alias is used to permit access the route from an alias url as well,
Setting an alias allows the route to be also accessible from the alias URL.
second parameter is used to push default values to the route.
```php
App::post('/v1/storage/buckets/:bucketId/files')