Closed mario-minati closed 4 years ago
Yes, definitely. api_controller
should still be supported until v2, but internally it should not be used. Also, it should be giving warnings (or maybe it is and I haven't noticed somehow...)
Ok. Currently the usage is not purely internal, it uses the config from Mojolicious::Plugin::Yancy
, maybe the code should currently support both values api_controller
and default_controller
.
Actually I figured out why I did that: Specifying api_controller
in the top level of the Yancy configuration is also discouraged: The primary editor is configured through the editor
key. I'll add a comment and a deprecation message so I don't forget again :p
In
Mojolicious::Plugin::Yancy
there still seems the deprecatedapi_controller
variable in use to initialize the editor plugin:Should that be changed to
default_controller
?