annotate lib/Implab/Web/Resources/Root.pm @ 10:83ad674a8cdd

updated styles
author sergey
date Thu, 15 May 2014 01:51:42 +0400
parents aac1085b256d
children 573272ec604b
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
aac1085b256d initial commit
cin
parents:
diff changeset
1 package Implab::Web::Resources::Root;
aac1085b256d initial commit
cin
parents:
diff changeset
2 use strict;
aac1085b256d initial commit
cin
parents:
diff changeset
3
aac1085b256d initial commit
cin
parents:
diff changeset
4 use IMPL::declare {
aac1085b256d initial commit
cin
parents:
diff changeset
5 require => {
aac1085b256d initial commit
cin
parents:
diff changeset
6 LibraryResource => '-Benzin::Web::Resources::Doxygen::Library',
aac1085b256d initial commit
cin
parents:
diff changeset
7 UserResource => '-Benzin::Web::Resources::UserResource'
aac1085b256d initial commit
cin
parents:
diff changeset
8 },
aac1085b256d initial commit
cin
parents:
diff changeset
9 base => [
aac1085b256d initial commit
cin
parents:
diff changeset
10 'IMPL::Web::Application::Resource' => '@_'
aac1085b256d initial commit
cin
parents:
diff changeset
11 ]
aac1085b256d initial commit
cin
parents:
diff changeset
12 };
aac1085b256d initial commit
cin
parents:
diff changeset
13
aac1085b256d initial commit
cin
parents:
diff changeset
14 sub children {
aac1085b256d initial commit
cin
parents:
diff changeset
15 return {
aac1085b256d initial commit
cin
parents:
diff changeset
16 library => {
aac1085b256d initial commit
cin
parents:
diff changeset
17 class => LibraryResource
aac1085b256d initial commit
cin
parents:
diff changeset
18 },
aac1085b256d initial commit
cin
parents:
diff changeset
19 user => {
aac1085b256d initial commit
cin
parents:
diff changeset
20 class => UserResource,
aac1085b256d initial commit
cin
parents:
diff changeset
21 components => [qw(login logout passwd edit)]
aac1085b256d initial commit
cin
parents:
diff changeset
22 }
aac1085b256d initial commit
cin
parents:
diff changeset
23 };
aac1085b256d initial commit
cin
parents:
diff changeset
24 }
aac1085b256d initial commit
cin
parents:
diff changeset
25
aac1085b256d initial commit
cin
parents:
diff changeset
26 1;