sub build {
my $self = shift;
my $r = $self->routes;
my $host = "";
if ($host eq "domain1.com")
{
$r->add( '/home', 'home' ); $r->add( '/config', sub { $_[0]->config_hash } );
}
else
{
$r->add( '/home1', 'home1' );
}
}