Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add Rewrite for :: URLs to fetch $COLON$COLON
  • Loading branch information
zoffixznet committed Jul 14, 2016
1 parent ee3c430 commit 5cabd6e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions app.pl
Expand Up @@ -32,6 +32,14 @@
);
}

app->hook(
before_dispatch => sub {
my $c = shift;
$c->req->url->path( $c->req->url->path =~ s/::/\$COLON\$COLON/gr )
if $c->req->url->path =~ m{^/type/};
}
);

## ROUTES

get '/' => sub { shift->reply->static('/index.html') };
Expand Down

0 comments on commit 5cabd6e

Please sign in to comment.