Mercurial > pub > site.implab
annotate lib/Implab/Web/Resources/Root.pm @ 2:a7a3e4f626ff
sync
author | sergey |
---|---|
date | Wed, 07 May 2014 12:35:55 +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; |