2024-08-28 13:47:59 +01:00

415 B

Bearer Auth Nested Route Example

This example demonstrates how to use bearer authentication in Dumbo using nested routes (e.g. /api).

Running the Example

  1. Install dependencies:

    composer install
    
  2. Start the server:

    composer start
    
  3. Access the protected route:

      curl -H "Authorization: Bearer mysupersecret" http://localhost:8000/api