1 use CatalystX::Declarative;
3 controller TestApp::Controller::Foo {
5 has bar => (is => 'rw');
9 under '/', action base, as '';
11 action root under base as '' is final { }
13 action list under base is final { }
15 under base, as 'id', action object ($id) { }
17 action view under object is final { $ctx->res->body('Hello World!') }
19 action edit under object is final { }
21 action tag (@tags) under object is final { }