The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

PlackX::RouteBuilder - Minimalistic routing sugar for your Plack

SYNOPSIS

  # app.psgi
  use PlackX::RouteBuilder;
  my $app = router {
    get '/api' => sub {
      my $req = shift;
      my $res = $req->new_response(200);
      $res->body('Hello world');
      $res;
    },
    post '/comment/{id}' => sub {
      my ($req, $args)  = @_;
      my $id = $args->{id};
      my $res = $req->new_response(200);
      $res;
    }
  };

DESCRIPTION

PlackX::RouteBuilder is Minimalistic routing sugar for your Plack

SOURCE AVAILABILITY

This source is in Github:

  http://github.com/dann/p5-plackx-routebuilder

CONTRIBUTORS

Many thanks to:

AUTHOR

dann <techmemo@gmail.com>

SEE ALSO

LICENSE

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.