mirror of
https://github.com/notrab/dumbo.git
synced 2025-01-17 06:08:31 +01:00
Bearer Auth Nested Route Example
This example demonstrates how to use bearer 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 -H "Authorization: Bearer mysupersecret" http://localhost:8000/api