CatalystX::OrderedActions - "correct" actions matching order
package MyApp;
use Catalyst qw(+CatalystX::OrderedActions);
package MyApp::Controller::Resource;
use base qw(Catalyst::Controller);
use Moose;
with 'CatalystX::TraitFor::Controller::OrderedActions';
sub show : GET Path('/res') Args(1) { ... }
sub modify : Path('/res') Args(1) { ... }
sub options : OPTIONS Path('/res') Args(1) { ... }
This role tries to add actions matching order based on priorities into Path and Chained dispatch types.
Path and Chained actions should respect addition matching logic.
Dispatcher should match path to action with some priority (matching order).
Each matching order position should depends on Args and fact of existing addition matching (in group, like SQL ORDER BY by several fields).
...
...
For discussion you could refer to github pull request #87.
Dmitry "dim0xff" Latin <[email protected]>
This software is copyright (c) 2015 by Dmitry Latin.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.