aboutsummaryrefslogtreecommitdiffstats
path: root/dev/server.pl
blob: 4b52789d2a56829a341f10c471b024ab69616c46 (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 dev::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();