Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

clean and add data

  • Loading branch information...
commit 3d54ba6d8496fb682cdb533d8e9d721b6e246b00 1 parent f033fae
@franckcuny authored
Showing with 21 additions and 2 deletions.
  1. +14 −0 lib/mywebapp/project.pm
  2. +7 −2 lib/mywebapp/user.pm
View
14 lib/mywebapp/project.pm
@@ -3,6 +3,20 @@ package mywebapp::project;
use Dancer ':syntax';
get '/' => sub {
+ {
+ projects => [
+ {
+ name => 'dancer',
+ url => 'http://github.com/sukria/dancer',
+ owner => 'alexis'
+ },
+ {
+ name => 'net::http::api',
+ url => 'http://github.com/franckcuny/net-http-api',
+ owner => 'franck'
+ },
+ ]
+ };
};
1;
View
9 lib/mywebapp/user.pm
@@ -3,6 +3,11 @@ package mywebapp::user;
use Dancer ':syntax';
get '/' => sub {
- {users => [{name => 'franck', 'role' => 'developer'}, {name => 'alexis',
- 'role' => 'developer'}, {name => 'cmaussan', role => 'tester'}]};
+ {
+ users => [
+ { name => 'franck', 'role' => 'developer' },
+ { name => 'alexis', 'role' => 'developer' },
+ { name => 'cmaussan', role => 'tester' }
+ ]
+ };
};
Please sign in to comment.
Something went wrong with that request. Please try again.