Commit | Line | Data |
d2739840 |
1 | package RestTest::Controller::API::RPC::Artist; |
2 | use Moose; |
3 | BEGIN { extends 'Catalyst::Controller::DBIC::API::RPC' } |
4 | |
5 | use namespace::autoclean; |
6 | |
7 | __PACKAGE__->config |
8 | ( action => { setup => { PathPart => 'artist', Chained => '/api/rpc/rpc_base' } }, |
9 | class => 'RestTestDB::Artist', |
10 | create_requires => ['name'], |
88b67dcd |
11 | create_allows => ['name', { cds => ['*'] }], |
12 | update_allows => ['name', { cds => ['*'] }], |
d2739840 |
13 | prefetch_allows => [[qw/ cds /],{ 'cds' => 'tracks'}], |
88b67dcd |
14 | ); |
d2739840 |
15 | |
16 | 1; |