Mercurial > pub > site.implab
diff lib/Implab/Web/Resources/Root.pm @ 0:aac1085b256d
initial commit
author | cin |
---|---|
date | Sat, 15 Mar 2014 00:34:33 +0400 |
parents | |
children | 573272ec604b |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/Implab/Web/Resources/Root.pm Sat Mar 15 00:34:33 2014 +0400 @@ -0,0 +1,26 @@ +package Implab::Web::Resources::Root; +use strict; + +use IMPL::declare { + require => { + LibraryResource => '-Benzin::Web::Resources::Doxygen::Library', + UserResource => '-Benzin::Web::Resources::UserResource' + }, + base => [ + 'IMPL::Web::Application::Resource' => '@_' + ] +}; + +sub children { + return { + library => { + class => LibraryResource + }, + user => { + class => UserResource, + components => [qw(login logout passwd edit)] + } + }; +} + +1; \ No newline at end of file