dumbo/examples/context-variables
2024-09-08 09:24:05 +01:00
..
2024-09-05 09:26:51 +01:00
2024-09-08 09:24:05 +01:00
2024-09-05 09:26:51 +01:00

Context Example

This example demonstrates how to get and set custom variables on the root, and route middleware.

Running the Example

  1. Install dependencies:

    composer install
    
  2. Start the server:

    composer start
    
  3. Access the protected route:

      curl http://localhost:8000
      curl http://localhost:8000/api