Use Data::Serializer, instead of hardcoding YAML. Allow the type of serializer
[catagits/Catalyst-Engine-STOMP.git] / testapp / lib / StompTestApp / Controller / TestJsonController.pm
CommitLineData
a5ae1e8c 1package # Hide from PAUSE
2 StompTestApp::Controller::TestJsonController;
3use Moose;
4use namespace::autoclean;
5
6BEGIN { extends 'Catalyst::Controller::MessageDriven' };
7
8__PACKAGE__->config( serializer => 'JSON' );
9
10sub testaction : Local {
11 my ($self, $c, $request) = @_;
12
13 # Reply with a minimal response message
14 my $response = { type => 'testaction_response' };
15 $c->stash->{response} = $response;
16}
17
181;