##########################################################

=head2 add_routes

page: /thruk/cgi-bin/conf.cgi

=cut

$routes->{'/thruk/cgi-bin/conf.cgi'} = 'Thruk::Controller::conf::index';

# enable config features if this plugin is loaded
$app->config->{'use_feature_configtool'} = 1;

# add new menu item, but only if user has all of the
# requested roles
Thruk::Utils::Menu::insert_item('System', {
                                'href'  => '/thruk/cgi-bin/conf.cgi',
                                'name'  => 'Config Tool',
                                'roles' => [qw/admin/],
});
