This repository has been archived on 2024-06-18. You can view files and clone it, but cannot push or open issues/pull-requests.
2016-01-13 04:11:46 +01:00
|
|
|
package rt::rootfake;
|
|
|
|
|
|
|
|
use configuration ':all';
|
|
|
|
use app;
|
|
|
|
use utf8;
|
2016-01-21 20:52:59 +01:00
|
|
|
use open qw/:std :utf8/
|
2016-01-13 04:11:46 +01:00
|
|
|
|
|
|
|
use Exporter 'import';
|
|
|
|
# what we want to export eventually
|
|
|
|
our @EXPORT_OK = qw/rt_root_fake/;
|
|
|
|
|
|
|
|
# bundle of exports (tags)
|
|
|
|
our %EXPORT_TAGS = ( all => [qw/rt_root_fake/] );
|
|
|
|
|
|
|
|
sub rt_root_fake {
|
|
|
|
my ($session) = @_;
|
|
|
|
my $res;
|
|
|
|
|
|
|
|
$$res{template} = 'index';
|
|
|
|
$$res{params} = {
|
|
|
|
login => "toto"
|
|
|
|
, admin => 1
|
|
|
|
, domains => qw/toto.netlib.re/
|
|
|
|
};
|
|
|
|
|
|
|
|
$res
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|