mirror of
https://github.com/notrab/dumbo.git
synced 2025-01-17 06:08:31 +01:00
544 B
544 B
Route Params Example
This example demonstrates how to use route params with Dumbo.
Running the Example
-
Install dependencies:
composer install
-
Start the server:
composer start
-
Access the protected route:
# Single parameter curl http://localhost:8000/hello/John # Multiple parameters curl http://localhost:8000/users/123/posts/456 # Optional parameter (query string) curl http://localhost:8000/?name=Alice curl http://localhost:8000/