See https://codeigniter4.github.io/CodeIgniter4/tutorial/index.html. If you want to see code to use Auto Routing, see the auto-routing branch. GET http://localhost ...
The most convenient way to use D2 is to just run it as a CLI executable to produce SVGs from .d2 files. You can run the install script with --dry-run to see the ...