6 use Catalyst::Runtime '5.70';
8 # Set flags and add plugins for the application
10 # -Debug: activates the debug mode for very useful log messages
11 # ConfigLoader: will load the configuration from a YAML file in the
12 # application's home directory
13 # Static::Simple: will serve static files from the application's root
18 our $VERSION = '0.01';
20 # Configure the application.
22 # Note that settings in RestTest.yml (or other external
23 # configuration file that you set up manually) take precedence
24 # over this when using ConfigLoader. Thus configuration
25 # details given here can function as a default configuration,
26 # with a external configuration file acting as an override for
29 __PACKAGE__->config( name => 'RestTest' );
31 # Start the application
34 my $logger = Class::MOP::Class->create(
37 (map { ($_ => sub { () }), ("is_${_}" => sub { () }) } qw(debug info warn error fatal)),
38 (map { ($_ => sub { () }) } qw(level levels enable disable abort)),
42 __PACKAGE__->log($logger->new_object);
46 RestTest - Catalyst based application
50 script/resttest_server.pl
54 [enter your description here]
58 L<RestTest::Controller::Root>, L<Catalyst>
66 This library is free software, you can redistribute it and/or modify
67 it under the same terms as Perl itself.