mirror of
https://github.com/notrab/dumbo.git
synced 2025-02-27 19:12:27 +01:00
Basic Auth Nested Route Example
This example demonstrates how to use Basic authentication in Dumbo using nested routes (e.g. /api
).
Running the Example
-
Install dependencies:
composer install
-
Start the server:
composer start
-
Access the protected route:
curl -u user:password http://localhost:8000