aboutsummaryrefslogtreecommitdiffstats
path: root/server.pl
blob: dc65539afb0dd5bce2ac7b4a7670113c8d4204dc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/perl

use strict;
use warnings;
use utf8;

use MyServer;
use lib 'lib';
use FPanel::Interface;

my $server = MyServer->new();

$server->entry_points({
    '/cgi-bin' => 'FPanel::Interface'
});

my @config = 'default.in';
push @config, 'config.in' if -f 'config.in';

# TODO: This is only for testing purposes. Using a blessed target above
# prevents me from logging in.
$server->options({
    '/cgi-bin' => {
        PARAMS => { cfg_file => [ @config ], format => 'equal' }
    }
});

$server->run();