# sample driver for the mod_perl2 frontend to bryar.

package BryarDriver;
use Bryar;
use Apache::RequestRec;

my $bryar = Bryar->new(
    datadir => "/your/data/dir/",
    frontend => "Bryar::Frontend::ModPerl2"
);

sub handler : method {
  my $class = shift;
  my $r = shift;

  Apache->request->status(200);
  $bryar->go();

  return Apache::OK;
}
1;
