aboutsummaryrefslogtreecommitdiffstats
path: root/server.pl
blob: 74e7c09e3b1c07f56f86f2c4a4ce6585d8a2b024 (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 -CADS

use strict;
use warnings;
use utf8;

use MyServer;
use lib 'lib';
use Fripost::Panel::Interface;

my $server = MyServer->new();

$server->entry_points({
    '/cgi-bin' => 'Fripost::Panel::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();