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