Mercurial > pub > site.implab
annotate lib/Implab/Web/Resources/Root.pm @ 3:84ed27230825
sync
author | sergey |
---|---|
date | Thu, 08 May 2014 03:54:38 +0400 |
parents | aac1085b256d |
children | 573272ec604b |
rev | line source |
---|---|
0 | 1 package Implab::Web::Resources::Root; |
2 use strict; | |
3 | |
4 use IMPL::declare { | |
5 require => { | |
6 LibraryResource => '-Benzin::Web::Resources::Doxygen::Library', | |
7 UserResource => '-Benzin::Web::Resources::UserResource' | |
8 }, | |
9 base => [ | |
10 'IMPL::Web::Application::Resource' => '@_' | |
11 ] | |
12 }; | |
13 | |
14 sub children { | |
15 return { | |
16 library => { | |
17 class => LibraryResource | |
18 }, | |
19 user => { | |
20 class => UserResource, | |
21 components => [qw(login logout passwd edit)] | |
22 } | |
23 }; | |
24 } | |
25 | |
26 1; |