From a99b6d22ae5fe183fe487a9e71097e0eaa20dc47 Mon Sep 17 00:00:00 2001 From: franck cuny Date: Sat, 18 Jun 2011 17:07:17 +0200 Subject: two new routes: /about and /api Signed-off-by: franck cuny --- lib/StarGit.pm | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/StarGit.pm') diff --git a/lib/StarGit.pm b/lib/StarGit.pm index 91210e7..7931b17 100644 --- a/lib/StarGit.pm +++ b/lib/StarGit.pm @@ -13,6 +13,14 @@ get '/' => sub { template 'index'; }; +get '/about' => sub { + template 'about'; +}; + +get '/api' => sub { + template 'api'; +}; + get '/graph/local/:name' => sub { my $name = params->{'name'}; -- cgit v1.2.3