This repository has been archived on 2023-08-16. You can view files and clone it, but cannot push or open issues or pull requests.
Foodloop-Server/uploadimage.pl
2016-08-12 17:10:42 +01:00

20 lines
401 B
Perl

#!/usr/bin/env perl
use Mojolicious::Lite;
# /?user=sebastian&pass=secr3t
any '/' => sub {
my $c = shift;
# Query parameters
my $user = $c->param('user') || '';
my $company = $c->param('company') || '';
my $currency = $c->param('currency') || '';
print "$user $company $currency\n";
use Devel::Dwarn;
Dwarn $c->req;
# Failed
$c->render(text => 'upload failed.');
};
app->start;