Handwritten Router
file: code/HandwrittenPSGIRouter 1: package MyApp::PSGI; 2: use 5.018; 3: use strict; 4: use warnings; 5: use Try::Tiny; 6: use Plack::Request; 7: 8: my %poor_persons_routes = ( 9: '/foo' => \&foo, 10: '/bar' => \&bar, 11: );
Set up an easy routing hash