Skip to content

Commit

Permalink
Implement handling of BREW HTTP requests
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Aug 11, 2017
1 parent 4d648af commit e1f6b72
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/ModulesPerl6.pm
Expand Up @@ -77,6 +77,11 @@ sub startup {

# ROUTES
my $r = $self->routes;

$r->any(['BREW'] => '/*coffee' => sub {
shift->render(text => 'Short and stout', status => 418)
});

$r->get('/')->to('root#index')->name('home');
$r->get($_)->to('root#search')->name('search')
for '/search', '/s/#q', '/search/#q';
Expand Down

0 comments on commit e1f6b72

Please sign in to comment.