Revision 306133343635 () - Diff

Link to this snippet: https://friendpaste.com/wT3GQnICgcWVV4XGtiIB2
Embed:
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env perl
use strict;
use Mojolicious::Lite;

get '/' => sub {
my $self = shift;
$self->respond_to(
json => {some_key => 'the_value'}
);
};

app->start;