diff options
| author | franck cuny <franck@lumberjaph.net> | 2011-06-18 17:07:17 +0200 |
|---|---|---|
| committer | franck cuny <franck@lumberjaph.net> | 2011-06-18 17:07:17 +0200 |
| commit | a99b6d22ae5fe183fe487a9e71097e0eaa20dc47 (patch) | |
| tree | 3cc65cb6f3c8876bfb06ca82d528178cfaaeff56 /lib/StarGit.pm | |
| parent | padding for errors (diff) | |
| download | stargit-a99b6d22ae5fe183fe487a9e71097e0eaa20dc47.tar.gz | |
two new routes: /about and /api
Signed-off-by: franck cuny <franck@lumberjaph.net>
Diffstat (limited to 'lib/StarGit.pm')
| -rw-r--r-- | lib/StarGit.pm | 8 |
1 files changed, 8 insertions, 0 deletions
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'}; |
