1 package DynamicAppDemo::Controller::FakeExample;
3 use namespace::autoclean;
5 BEGIN { extends 'DynamicAppDemo::ControllerBase' }
7 # This is a fake controller.
9 # It exists to show an example of using ::ControllerBase which is autogenerated,
10 # which helps me seperate the building and testing of the controller action
11 # registration functionality, seperate the the code generation :)
15 $c->res->body('quux');
16 $c->res->header('X-Foo', 'bar');
19 sub _do_not_register_me { }
21 # In a non-trivial example, you would use MX::Method::Sigs :)
23 __PACKAGE__->meta->make_immutable;