Dancer2 icon indicating copy to clipboard operation
Dancer2 copied to clipboard

Add method to change the route sub

Open racke opened this issue 8 years ago • 0 comments

For my new plugin https://github.com/PerlDancer/Dancer2-Plugin-OpenAPI I need a way to exchange the route sub from the plugin. This is currently not possible through the code accessor, so I resorted to the dirty way:

$plugin->operations->{ $operation_id }->{code} = $route_sub;

It would be nice to have a writer for code. If you agree with me, I will submit a PR.

racke avatar May 20 '17 08:05 racke