Introduce Hanami::API#to_inspect which returns a String with printable routes
Technical notes
Contrary to hanami-router, Hanami::API inspector couldn't be lazy because the class DSL that defines the routes cannot be re-evaluated like in the case of Hanami::Router, where the routes definition happens at the instance level.
Feature
Hanami::API#to_inspect
which returns aString
with printable routesTechnical notes
hanami-router
, Hanami::API inspector couldn't be lazy because the class DSL that defines the routes cannot be re-evaluated like in the case ofHanami::Router
, where the routes definition happens at the instance level.Ref https://github.com/hanami/router/pull/208 Ref https://github.com/hanami/router/pull/212