- or download this
http://localhost/script.cgi/=
- or download this
GET qr{^/=$} => sub {
print $q->header('text/html');
print $q->h1('REST API Documentation');
print $q->p('Here is a list of what you can do:');
- or download this
my $regex = qr{^/=$};
my $coderef = sub {
...
# etc.
};
GET( $regex, $coderef );
- or download this
$code->();
exit;
- or download this
GET qr{^/=/model/book/id/([\d-]+)$} => sub {
my $id = $1;
# etc.
- or download this
http://localhost/script.cgi/=/model/book/id/10566