1
0
Fork 0
mirror of synced 2024-06-03 03:14:50 +12:00

Update docs/tutorials/add-route.md

Co-authored-by: Eldad A. Fux <eldad.fux@gmail.com>
This commit is contained in:
Shimon Newman 2022-09-09 16:43:17 +03:00 committed by GitHub
parent ef7f919fa1
commit 3f568f732e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -153,7 +153,7 @@ some code...
```
### 6. Action
Action populates the actual routes code and has to be very clear and understandable.
Action populates the actual routes code and has to be very clear and understandable. A good route stay simple and doesn't contain complex logic. An action is where we describe our business need in code, and combine different libraries to work together and tell our story.
```php
App::post('/v1/account/sessions/anonymous')