Commit | Line | Data |
d2739840 |
1 | package RestTest::Controller::API::RPC::TrackSetupDBICArgs; |
2 | use Moose; |
3 | BEGIN { extends 'Catalyst::Controller::DBIC::API::RPC' } |
4 | |
5 | use namespace::autoclean; |
6 | |
7 | __PACKAGE__->config |
8 | ( action => { setup => { PathPart => 'track_setup_dbic_args', Chained => '/api/rpc/rpc_base' } }, |
9 | class => 'RestTestDB::Track', |
10 | select => [qw/position title/], |
11 | ordered_by => [qw/position/], |
12 | ); |
13 | |
14 | override list_munge_parameters => sub |
15 | { |
16 | my ($self, $c) = @_; |
17 | |
18 | $c->req->search_parameters->[0]->{'me.position'} = { '!=' => '1' }; |
19 | }; |
20 | |
21 | 1; |