view lib/Implab/Web/Resources/Root.pm @ 2:a7a3e4f626ff

sync
author sergey
date Wed, 07 May 2014 12:35:55 +0400
parents aac1085b256d
children 573272ec604b
line wrap: on
line source

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;