Initial commit
[nethack-naodash.git] / app.psgi
CommitLineData
01ba3ddc
MG
1#!/usr/bin/perl
2use 5.014000;
3use warnings;
4
5use App::Web::NAOdash;
6use Plack::Builder;
7
8builder {
9 mount '/dash/' => App::Web::NAOdash->new->to_app;
10 mount '/json/' => App::Web::NAOdash->new(json => 1)->to_app;
11 mount '/ok' => sub { [200, [], []] };
12 mount '/' => sub { App::Web::NAOdash::reply(404, 'Try /dash/USERNAME or /json/USERNAME')};
13}
This page took 0.010487 seconds and 4 git commands to generate.