mirror of
https://github.com/notrab/dumbo.git
synced 2025-01-17 14:18:14 +01:00
c1d8347f69
* refactor: add missing response interface * fix: app config setter and getter * Apply suggestions from code review Co-authored-by: Jamie Barton <jamie@notrab.dev> * feat: introduce HasConfig trait * refactor: remove duplicate methods and use HasConfig trait * changes * revert trait for now * add back variables * revert examples demo --------- Co-authored-by: Jamie Barton <jamie@notrab.dev>
Context Example
This example demonstrates how to get
and set
custom variables on the root, and route middleware.
Running the Example
-
Install dependencies:
composer install
-
Start the server:
composer start
-
Access the protected route:
curl http://localhost:8000 curl http://localhost:8000/api